Please allow me to clarify here. So if attributes on source object u are different from attributes loaded from database, database will always prevail? I thought the source object u should represent newer version of the data, shouldn't it?
On Wed, Feb 19, 2014 at 7:21 AM, Michael Bayer <[email protected]>wrote: > > On Feb 19, 2014, at 10:01 AM, Bao Niu <[email protected]> wrote: > > Thanks for replying. Isn't it the case when I just provide a primary key > for the source object, the attribute shoul be marked expired on the target > instance? > > > no because the target instance a product of either a. essentially loaded > by session.query(User).get(1), so not expired or b. primary key identity 1 > doesn't exist in the database yet in which case the new object is only > pending. > -- 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/groups/opt_out.
