Re: [sqlalchemy] self referencing many-to-many association object

2011-08-31 Thread Michael Bayer
ForeignKey accepts the name of the table in its string argument, hence the error "could not find *table* 'Character'", so that would be ForeignKey('characters.id'). Additionally, since there is more than one way to join "characters" to "sympathylists", you'll need primaryjoin on each relationsh

[sqlalchemy] self referencing many-to-many association object

2011-08-31 Thread bika
Hi, I could someone help me in putting together a self-referencing association object? The docs write about self-referencing many2many and association objects separately, but I simply can't figure out how merge the two techniques (for example one uses declarative, the other doesn't) This is what