}
public NSArray attributesUsedInRelationships() {
if(attributesUsedInRelationships == null) {
NSMutableArray array = new NSMutableArray((NSArray)valueForKeyPath("model.entities.relationships.joins.sourceAttribute"));
array.addObject(valueForKeyPath("model.entities.relationships.joins.destinationAttribute"));
attributesUsedInRelationships = (NSArray)array.valueForKeyPath("@flatten");
}
return attributesUsedInRelationships;
}
public boolean attributeHasRelationships() {
return attributesUsedInRelationships().containsObject(attribute);