Hello,

There's a behaviour in SA that is not clear to me: if we look at the
example (User and Address) from the docs, we can change either the
related object or the foreign key
For example:
ad = Address(email_address='j...@google.com')
ad.user = jack
OR
ad.user_id = 1

What is the prefered behaviour ? And what happens if the two fields
are not in synch ?
(ie, what if jack.id=1 and we set explicetly ad.user = 2)

Thanks for clarifying .

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to