[sqlalchemy] Re: Handle multiple relations between two rows/objects

2015-09-30 Thread Jonathan Vanasco
Most ORMs, SqlAlchemy included, require a primary key. This page in the documentation describes why: http://docs.sqlalchemy.org/en/latest/faq/ormconfiguration.html#how-do-i-map-a-table-that-has-no-primary-key -- You received this message because you are subscribed to the Google Groups

Re: [sqlalchemy] Re: Handle multiple relations between two rows/objects

2015-09-30 Thread c.buhtz
On 2015-09-30 15:43 Jonathan Vanasco wrote: > Most ORMs, SqlAlchemy included, require a primary key. But simply adding a 'oid' to my relation-table doesn't solve the problem. tu_set_relation = sa.Table('tu_set_relation', _Base.metadata, sa.Column('oid', sa.Integer,