Skip to content

Commit

Permalink
Merge pull request #292 from otaran/ordered-relationship
Browse files Browse the repository at this point in the history
Parse "ordered" attribute
  • Loading branch information
Justin Williams committed Jun 29, 2015
2 parents f0d9b7d + 433bcf8 commit d610ed5
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 d610ed5

Please sign in to comment.