[sqlalchemy] Re: Getting relation orphans

2009-03-27 Thread Joril
On 26 Mar, 18:02, Michael Bayer mike...@zzzcomputing.com wrote: you can check if an object is an orphan related to a certain relation() its supposed to belong to, though there's no automated way to go from that object to the actual collection it was removed from unless you scan through all

[sqlalchemy] Re: Getting relation orphans

2009-03-26 Thread Michael Bayer
you can check if an object is an orphan related to a certain relation() its supposed to belong to, though there's no automated way to go from that object to the actual collection it was removed from unless you scan through all the potential parents in the session and check each one. the current