I have a table (T) that has a many-to-one relationship (via foreign key 
inclusion) to a category table (C). Let's name the relationship category. When 
I retrieve an existing T record, SA populates the category field with an 
instance of C.  I can change the category to a different value by storing a 
different instance of C into category.

My question is does it matter if the various instances of C are associated with 
the same session as the T instance? Can the C instances come from a different 
session, or can the be expunge'd from the session that retrieved them?  Can I 
store an entirely new C instance, and if so, will SA do an insert into the C 
table?


Thanks,
Mark

-- 
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