[sqlalchemy] Re: more than one link between 2 tables

2009-03-30 Thread Michael Bayer
On Mar 30, 2009, at 9:58 AM, Marcin Krol wrote: > > Michael Bayer wrote: >>> I need to do smth like this in a mapper() call for table 'hosts': >>> >>> 'Earliest_reservation':relation(Reservation, >>> order_by=Reservation.id, >>> backref='hosts'), >>> 'Reservations':relation(Reservation, >>> se

[sqlalchemy] Re: more than one link between 2 tables

2009-03-30 Thread Marcin Krol
Michael Bayer wrote: >> I need to do smth like this in a mapper() call for table 'hosts': >> >> 'Earliest_reservation':relation(Reservation, order_by=Reservation.id, >> backref='hosts'), >> 'Reservations':relation(Reservation, >> secondary=reservation_hosts_assoc_table, backref='hosts') >> >> That

[sqlalchemy] Re: more than one link between 2 tables

2009-03-30 Thread Michael Bayer
On Mar 30, 2009, at 4:14 AM, Marcin Krol wrote: > > Hello everyone, > > Anybody? > > I need to do smth like this in a mapper() call for table 'hosts': > > 'Earliest_reservation':relation(Reservation, order_by=Reservation.id, > backref='hosts'), > 'Reservations':relation(Reservation, > secondary=