NSMutableArray<EOProperty> classProperties = sourceEntity.classProperties().mutableClone();
classProperties.addObject(relationship);
sourceEntity.setClassProperties(classProperties);
}
if(log.isDebugEnabled())
log.debug(relationship + ", flattened:" + relationship.isFlattened() + ", definition:" + relationship.definition() + ", relationshipPath:" + relationship.relationshipPath());
return relationship;
}
/**
* Executes the given database context operation within a database context lock, retrying up to maxRetryCount times if the database connection dropped.