[sqlalchemy] Relationship definition problem

2012-02-01 Thread Thijs Engels
I am currently facing a problem with a legacy database for which I am creating a SQLAlchemy layer. With regards to mirroring the columns everything goes well. However I am having difficulties defining a relationship which is not many-to-many, but does use something which can be compared with an

Re: [sqlalchemy] Relationship definition problem

2012-02-01 Thread Michael Bayer
On Feb 1, 2012, at 11:14 AM, Thijs Engels wrote: In short; the Area class has a multi-column primary key (sesseion_id, area_id). I am trying to create the relationship for area in the Child class, however this would need the session_id which can be found in the parent class. This was my last