On Tuesday, April 7, 2015 at 4:00:28 PM UTC-7, Michael Bayer wrote: > > One event approach would be the before_flush() event, you search through > session.deleted for all Container objects; within Container, locate all Tag > entries with that Container as the ultimate parent and mark them all as > deleted as well. With the before_flush() approach, you can use the > Session and your objects in the usual way. >
Thanks Michael, that was very helpful. We ended up going with your first approach and it seems to be working out for us. I really appreciate the detailed response. I'm new to SQL Alchemy, coming to it from a Java/Hibernate background and I've been very impressed with the framework and the accompanying documentation. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.
