if (!relationship.isToMany()) {
EORelationship inverseRelationship = relationship.inverseRelationship();
if (inverseRelationship != null && inverseRelationship.isToMany()) {
EOEntity destEntity = inverseRelationship.entity();
NSDictionary destPK = relationship._foreignKeyForSourceRow(snapshot);
EOGlobalID destGID = destEntity.globalIDForRow(destPK);
if (destGID != null) {
processRelationship(database, gid, relationship, destGID, inverseRelationship, context, settings);
}
}
}