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=reservation_hosts_assoc_table, backref='hosts')
>
> That is, I need to create "links" between tables 'hosts' and
> 'reservation': one is normal ForeignKey of reservation.id in hosts
> table, and another is via association table  
> (reservation_hosts_assoc_table).

whats the actual question ?   the above setup should be fine.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to