public static void addObjectToObjectOnBothSidesOfRelationshipWithKey(EOEnterpriseObject addedObject, EOEnterpriseObject referenceObject, String key) { EOEditingContext referenceEc = referenceObject.editingContext(); EOEditingContext ec = addedObject.editingContext(); EOEnterpriseObject copy = addedObject; if (referenceEc != ec) { copy = EOUtilities.localInstanceOfObject(referenceEc, addedObject); } referenceObject.addObjectToBothSidesOfRelationshipWithKey(copy, key);
public static void addObjectToObjectOnBothSidesOfRelationshipWithKey(EOEnterpriseObject addedObject, EOEnterpriseObject referenceObject, String key) { ERXEOControlUtilities.addObjectToObjectOnBothSidesOfRelationshipWithKey(addedObject, referenceObject, key);
    public static void addObjectToObjectOnBothSidesOfRelationshipWithKey(EOEnterpriseObject addedObject,                                                                         EOEnterpriseObject referenceObject,                                                                         String key) {        EOEditingContext referenceEc = referenceObject.editingContext();        EOEditingContext ec = addedObject.editingContext();        EOEnterpriseObject copy = addedObject;        if (referenceEc != ec) {            copy = EOUtilities.localInstanceOfObject(referenceEc, addedObject);        }        referenceObject.addObjectToBothSidesOfRelationshipWithKey(copy, key);    }