Manlio Perillo ha scritto:

Hi, I have a strange (for me) problem with backref.

SQLAlchemy version is 0.3.1-1 on Debian Etch.


Here is the code:

[...]

from sqlalchemy import *>      trans = conn.begin()
     sess = create_session()

     sess.update(o)
     print o.b.z
     del o.b


A simple workaround is to remove cascade rules from the mapper and to
do:
       sess.delete(o.b)

However this require the explicit use of the session.


Regards  Manlio Perillo


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

Reply via email to