Re: [sqlalchemy] What is the best way to load _all_ related entities into the session (recursively) of a given entity?

2012-11-07 Thread Michael Bayer
On Nov 7, 2012, at 2:48 AM, alex wrote: Hi all, I have an entity fetched from the database. Now I want to load its related entities recursively to be sure to have all reconstructed and living in the session. I need this in order to expunge them and add them to another session. This

[sqlalchemy] What is the best way to load _all_ related entities into the session (recursively) of a given entity?

2012-11-06 Thread alex
Hi all, I have an entity fetched from the database. Now I want to load its related entities recursively to be sure to have all reconstructed and living in the session. I need this in order to expunge them and add them to another session. joinedload(*) with appropiate join_depth settings in the