Here is a primaryjoin, secondaryjoin I tried without success:
neighbors = relation(Place, primaryjoin=(Place.id ==
neighbors_table.place_id), secondaryjoin=
(neighbors_table.neighbor_id == Place.id),
secondary=neighbors_table)
and the error is:
sqlalchemy.exc.InvalidRequestError: When
asrenzo wrote:
Here is a primaryjoin, secondaryjoin I tried without success:
neighbors = relation(Place, primaryjoin=(Place.id ==
neighbors_table.place_id), secondaryjoin=
(neighbors_table.neighbor_id == Place.id),
secondary=neighbors_table)
and the error is:
Thanks Michael,
Everything is OK now.
Sorry for the typo, I was renaming my classes.
Regards,
Laurent
Le 04/09/2009 16:30, Michael Bayer a écrit :
asrenzo wrote:
Here is a primaryjoin, secondaryjoin I tried without success:
neighbors = relation(Place, primaryjoin=(Place.id ==
Laurent Rahuel wrote:
Thanks Michael,
Everything is OK now.
Sorry for the typo, I was renaming my classes.
it wouldn't be tough for us to enhance declarative such that you can name
Table objects in those strings as wellsince we have the MetaData
available.I'll add a ticket.