This: Intro to object states lists the four permutations of presence-in-DB/presence-in-session:
transient, pending, persistent & detached
Is there any way of querying a given object to return which of the four states the object is in?
I tried rooting around in _sa_instance_state
but couldn't find anything relevant.
Thanks!