[sqlalchemy] Re: relationship(with lazy="dynamic) different behavior on session.delete() btw. SA 0.9.3 and SA 1.0.4

2015-05-27 Thread g
Hi I found the answer I was loking for in http://docs.sqlalchemy.org/en/rel_1_0/orm/cascades.html#delete The other, more special case way is to set the passive_deletes flag to

[sqlalchemy] Re: relationship(with lazy="dynamic) different behavior on session.delete() btw. SA 0.9.3 and SA 1.0.4

2015-05-27 Thread g
Hi Thanks for your answer ! I understood that : "The default behavior of relationship when an object is deleted that is referred to via another one with a foreign key is to set it to NULL" But if I use the DBMS to delete the parent (*delete from node where id = 1)* I have. *ERROR: update o