Hi,
I've written some code that inserts a few things in my database. A user, A course, and the relation between them. I've saved the objects, and commited the transaction. But when i try to loop over the courses of a newly added user, it traps. But afterwards when i retry it, without creating a new user, i nicly displays the data in the database.
So i suppose i messed up somewhere with the state of the objects or the session... One last pointer, i checked the database, and al the right rows are there, in the User table, and the Courses table, and in the association table between them.
Any suggestions ?
Thx
|