if (!_warned.containsObject(entityName)) {
log.error("We currently don't support unsaved related objects for this entity: " + entityName);
_warned.addObject(entityName);
}
} else {
EORelationship rel = source.anyRelationshipNamed(key);
EOKeyGlobalID sourceGlobalID = (EOKeyGlobalID) ec.globalIDForObject(eo);
// AK: I wish I could, but when a relationship
// is
// not a class prop, there's nothing we can do.
// value =
// ec.arrayFaultWithSourceGlobalID(sourceGlobalID,
// rel.name(), ec);
EOFetchSpecification fs = new EOFetchSpecification(rel.destinationEntity().name(), null, null);
NSMutableArray<EOQualifier> qualifiers = new NSMutableArray(rel.joins().count());
NSDictionary pk = source.primaryKeyForGlobalID(sourceGlobalID);
for (Iterator iterator = rel.joins().iterator(); iterator.hasNext();) {
EOJoin join = (EOJoin) iterator.next();
Object pkValue = pk.objectForKey(join.sourceAttribute().name());
EOKeyValueQualifier qualifier = new EOKeyValueQualifier(join.destinationAttribute().name(), EOQualifier.QualifierOperatorEqual, pkValue);
qualifiers.addObject(qualifier);
}