[Modeling-users] Bug report: RelationshipManipulation and inheritance
Status: Abandoned
Brought to you by:
sbigaret
|
From: Sebastien B. <sbi...@us...> - 2003-07-24 15:19:05
|
Hi all,
While working on bug #775082 (class properties FKs do not get their
new value after save), I realized that RelationshipManipulation
methods (such as addObjectToBothSidesOfRelationshipWithKey()) do not
behave as expected in an inheritance environment.
An example will describe the pb. better than words:
model:=20
Address <<-------> Employee and Executive inherits from Employee
Tests:
emp=3DEmployee()
a=3DAddress()
emp.addObjectToBothSidesOfRelationshipWithKey(a, 'toAddresses')
self.failUnless(a in emp.getToAddresses())
self.failUnless(emp =3D=3D a.getToEmployee())
ex=3DExecutive()
a=3DAddress()
ex.addObjectToBothSidesOfRelationshipWithKey(a, 'toAddresses')
self.failUnless(a in ex.getToAddresses())
self.failUnless(ex =3D=3D a.getToEmployee()) ## FAILS!!
I've submitted bug report #776996. This is considered a high-priority
issue.
-- S=E9bastien.
|