Hi all,

In the __init__ method of a mapper, the load of a relation may lead to
an autoflush operation. When it happens, the object being instanciated
is already in the session and so INSERTed in the flush, whereas it is
not initialised completly (still in __init__).

It may throw exceptions for NOT NULL column, etc.

Is it a normal behavior? I though a Session.add() should be called
explicitly to add the object to the session. Do the object shouldn't
be added after the __init__ call anyway?

Thanks a lot

GustaV
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to