Information about rolled-back entities?

3 views
Skip to first unread message

Josiah Carlson

unread,
Feb 23, 2012, 6:38:03 PM2/23/12
to sqle...@googlegroups.com
I have some after_insert/after_update triggers on some of my entities. When they are flushed to the database, those triggers are called (which is totally fine). Is there a way to discover information about entities that are rolled back after a flush?

For example...

x = MyEntity(stuff=blah) # has after_insert trigger
elixir.session.flush()
... stuff
elixir.session.rollback() # can I find out about x here, in some way?

Thank you,
 - Josiah

Reply all
Reply to author
Forward
0 new messages