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 the potential parents in the session and check each one. > > the current way to check for an orphan is and internal thing at the > moment, and looks like: > > some_relation.mapper._is_orphan(attributes.instance_state(item))
I see, thanks :) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---