On Tue, May 05, 2009 at 06:01:27AM -0700, GHZ wrote: > > try : > > m = mapper(MyJoin, a_table.join(b_table), properties={ > 'a_id' : [Table_a.__table__.c.id, Table_b.__table__.c.a_id] > }) > > from: > http://www.sqlalchemy.org/docs/05/mappers.html#mapping-a-class-against-multiple-tables
Thanks, that's it! Am I wong or this is just a way to express exactely the join condition? wouldn't it be possible to set it implicitly from the join condition? *:-) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---