On Oct 5, 4:59 am, Michael Bayer <[email protected]> wrote:
> On Oct 4, 2009, at 7:54 PM, Y3s wrote:
>
> > Session = orm.sessionmaker(autocommit=True, autoflush=False)
>
> you're using non-default session settings, all attributes are expired
> upon transaction commit which in this case due to autocommit makes the
> object unreachable within the flush, so set expire_on_commit=False
> along with your autocommit=True.
>
Thank you!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---