Hello,

Suppose we have the Address and User mappers as they are defined in SA's 
documentation

I was wondering if the 2 syntax bellow were equivalent :

1/
User.mapper.add_property('addresses', relation(Address, 
backref=BackRef('user', **user_args)), **addresses_args)

2/
Address.mapper.add_property('user', backref='addresses', **user_args)
User.mapper.add_property('addresses', backref='user', **addresses_args)




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