Rick Morrison wrote:
> Wouldn't a flavor of .save() that always flush()'ed work for this case? 
> 
> say, Session.persist(obj)
> 
> Which would then chase down the relational references and persist the 
> object graph of that object...and then add the now-persisted object to 
> the identity map.
> 
> ...something like a 'mini-flush'.

Almost, except I would want it to only flush if I tried to access a 
db-generated attribute. The normal "lazy" behavior otherwise makes 
perfect sense to me.

-Adam Batkin


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to