[sqlalchemy] Re: Many to many to same table

2007-07-20 Thread Koen Bok
Thanks Michael, thats just too cool! On Jul 20, 10:35 pm, Michael Bayer <[EMAIL PROTECTED]> wrote: > yup, just spell it out > > item_mapper = mapper(Item, item_table, properties=dict( > collections=relation(Item, secondary=collection_table ,lazy=True, > primaryjoin=item_table.c.id==coll

[sqlalchemy] Re: Many to many to same table

2007-07-20 Thread Michael Bayer
yup, just spell it out item_mapper = mapper(Item, item_table, properties=dict( collections=relation(Item, secondary=collection_table ,lazy=True, primaryjoin=item_table.c.id==collection_table.c.id_coll, secondaryjoin=item_table.c.id==collection_table.c.id_item, backref='it