[sqlalchemy] Re: remove an object from a property deletes from session

2009-03-27 Thread sandro dentella
On 26 Mar, 18:04, Michael Bayer mike...@zzzcomputing.com wrote: it would only do that if you have delete-orphan on the relation, and the object was never saved.it will get re-added once you attach it to that's exactly the situation I have. thanks for the explanation. sandro *:-)

[sqlalchemy] Re: remove an object from a property deletes from session

2009-03-26 Thread Michael Bayer
it would only do that if you have delete-orphan on the relation, and the object was never saved.it will get re-added once you attach it to something again. im not sure at what point we added that behavior, its so that delete-orphan in conjunction with collection.remove() works in all cases,