On Jun 27, 2007, at 6:00 AM, remi jolin wrote:
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',
le 27.06.2007 15:36 Michael Bayer a écrit:
On Jun 27, 2007, at 6:00 AM, remi jolin wrote:
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/
On Jun 27, 10:54 am, remi jolin [EMAIL PROTECTED] wrote:
I first tried to add the backref on only one side but the relationship
was not bi-directional ; user.addresses.append(a) updated address.user
but not the other way, that's why I added it both sides.
try not to use add_property() for