From: <mcu...@us...> - 2007-08-15 01:50:02
|
Revision: 1086 http://orm.svn.sourceforge.net/orm/?rev=1086&view=rev Author: mcurland Date: 2007-08-14 18:50:00 -0700 (Tue, 14 Aug 2007) Log Message: ----------- Fixed issue with uniqueness constraints never being found if all of the roles they constrained had proxies. refs #327 Modified Paths: -------------- trunk/Oial/ORMOialBridge/OialModelIsForORMModel.cs Modified: trunk/Oial/ORMOialBridge/OialModelIsForORMModel.cs =================================================================== --- trunk/Oial/ORMOialBridge/OialModelIsForORMModel.cs 2007-08-15 01:48:13 UTC (rev 1085) +++ trunk/Oial/ORMOialBridge/OialModelIsForORMModel.cs 2007-08-15 01:50:00 UTC (rev 1086) @@ -798,18 +798,13 @@ // For each role played by its object type... foreach (Role role in objectType.PlayedRoleCollection) { - if (ShouldIgnoreFactType(role.FactType)) + if (ShouldIgnoreFactType(role.BinarizedFactType)) { continue; } - Role oppositeRole = role.OppositeRoleAlwaysResolveProxy as Role; + Role oppositeRole = role.OppositeRoleAlwaysResolveProxy.Role; - if (oppositeRole == null) - { - continue; - } - // For each constraint on the opposite role... foreach (ConstraintRoleSequence constraintRoleSequence in oppositeRole.ConstraintRoleSequenceCollection) { @@ -1017,7 +1012,7 @@ foreach (Role role in ObjectTypePlaysRole.GetPlayedRoleCollection(objectType)) { - FactType factType = role.FactType; + FactType factType = role.BinarizedFactType; if (ShouldIgnoreFactType(factType)) { continue; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |