From e878ec167ec07c7a20db6512160867d45177f7ff Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 28 Feb 2007 01:25:52 +0000 Subject: [PATCH] this test works with both one to many and many to one, but i think its intended to be one-to-many --- test/orm/inheritance5.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/orm/inheritance5.py b/test/orm/inheritance5.py index d25d630351..279c1d95aa 100644 --- a/test/orm/inheritance5.py +++ b/test/orm/inheritance5.py @@ -233,7 +233,7 @@ class RelationTest3(testbase.ORMTest): if usedata: mapper(Person, people, select_table=poly_union, polymorphic_identity='person', polymorphic_on=people.c.type, properties={ - 'colleagues':relation(Person, primaryjoin=people.c.colleague_id==people.c.person_id, remote_side=people.c.person_id, uselist=True), + 'colleagues':relation(Person, primaryjoin=people.c.colleague_id==people.c.person_id, remote_side=people.c.colleague_id, uselist=True), 'data':relation(Data, uselist=False) } ) @@ -241,7 +241,7 @@ class RelationTest3(testbase.ORMTest): mapper(Person, people, select_table=poly_union, polymorphic_identity='person', polymorphic_on=people.c.type, properties={ 'colleagues':relation(Person, primaryjoin=people.c.colleague_id==people.c.person_id, - remote_side=people.c.person_id, uselist=True) + remote_side=people.c.colleague_id, uselist=True) } ) -- 2.47.2