In code:
t = Model.Resume()
t.id = something
w = Model.session.query(Model.Workplace).filter_by(id=idd).first()
# model.save(t)
model.save_or_update(t)
Without the query line, save() would have worked, but the query is on
another object. There is a relation between the objects, but it is not
clear how querying on another object makes the Resume object non-
transient.
On Jun 3, 10:55 pm, "Michael Bayer" <[email protected]> wrote:
> Moshe C. wrote:
>
> > Well, I thought it was transient.
>
> > If you refer to the code in the first post:
>
> your first post has a mapping only. There is no illustration of how
> you're querying, or using save() or load.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---