From: Mike S. <ms...@md...> - 2005-09-14 06:13:05
|
If your sourceObject is not an EO, but the relationshipKey relationship returns an array of EO's, the values in that array do not get localInstance'd into the editingContext that is used by the WOToManyRelationship. Here's a small patch to fix that (basically this same code exists in ERXArrayChooser): Index: WOToManyRelationship.java =================================================================== RCS file: /cvsroot/wonder/Wonder/Common/Frameworks/ERExtensions/ Sources/er/extensions/WOToManyRelationship.java,v retrieving revision 1.14 diff -r1.14 WOToManyRelationship.java 80a81,83 > if (oldValues.lastObject() instanceof EOEnterpriseObject) { > oldValues = ERXEOControlUtilities.localInstancesOfObjects(editingContext(), oldValues); > } 96c99 < } \ No newline at end of file --- > } |