Skip to content

Commit

Permalink
Parse "ordered" attribute, see #290
Browse files Browse the repository at this point in the history
Adds support for ordered relationships.
  • Loading branch information
otaran authored and Justin Williams committed Jun 29, 2015
1 parent 2f2f034 commit ce927af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions momcom/NSRelationshipDescription+momcom.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ + (NSRelationshipDescription *)baseEntityForXML:(NSXMLElement *)xmlNode;
[relationshipDescription setDeleteRule:NSDenyDeleteRule];
}
}
NSXMLNode *orderedNode = [xmlNode attributeForName:@"ordered"];
if (orderedNode != nil) {
[relationshipDescription setOrdered:[[orderedNode stringValue] boolValue]];
}

// Destination entity and inverse are not handled here, they get post processed once related entities exist.

Expand Down

0 comments on commit ce927af

Please sign in to comment.