[sqlalchemy] Re: Bug (?) in combined 1:n:1 + m:n relation mapping

2007-10-17 Thread Thomas Wittek
On Oct 16, 7:42 pm, Michael Bayer [EMAIL PROTECTED] wrote: On Oct 16, 2007, at 1:30 PM, [EMAIL PROTECTED] wrote: Am I really supposed to save/flush/clear/query my objects to get the correct mappings? Or is this a bug? the advised pattern here is the association object pattern

[sqlalchemy] Re: Bug (?) in combined 1:n:1 + m:n relation mapping

2007-10-17 Thread Thomas Wittek
On Oct 17, 12:21 pm, Thomas Wittek [EMAIL PROTECTED] wrote: mapper(Participation, participation_table, properties=dict( user=relation(User, backref='participations') ) ) Should be: mapper(Participation, participation_table)

[sqlalchemy] Re: Bug (?) in combined 1:n:1 + m:n relation mapping

2007-10-16 Thread Michael Bayer
On Oct 16, 2007, at 1:30 PM, [EMAIL PROTECTED] wrote: Hi everybody! I've got a schema with a combined 1:n:1 + m:n relation. In detail, I have the entities user and event and the relation participation. That leads to 1:n user-participation, n:1 participation-event, and m:n user-event: