On Oct 29, 2009, at 7:22 PM, Tvrtko wrote:
>
> Now on 0.4.8.
> And it is just not working.
>
> My "copy" method is flawed. Don't use it. The innards of sqlalchemy
> are just too complicated to mess around with.
>
> As for the cascade option. It also doesn't work. I have the following:
>
> mapper(History, history_table, properties = dict(
> user = relation(User, backref = 'history', cascade='save-
> update')))
>
> And still, after I merge user back into session, the history is also
> merged.
> I test this by issuing:
>
> print user.history
you want the cascade setting on "history"
backref=backref("history", cascade='save-update')
>
> This prints the data but doesn't SELECT from database.
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---