Skip to content

Commit 433bcf8

Browse files
committed
Parse "ordered" attribute, see rentzsch#290
Adds support for ordered relationships.
1 parent f0d9b7d commit 433bcf8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

momcom/NSRelationshipDescription+momcom.m

+4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ + (NSRelationshipDescription *)baseEntityForXML:(NSXMLElement *)xmlNode;
3434
[relationshipDescription setDeleteRule:NSDenyDeleteRule];
3535
}
3636
}
37+
NSXMLNode *orderedNode = [xmlNode attributeForName:@"ordered"];
38+
if (orderedNode != nil) {
39+
[relationshipDescription setOrdered:[[orderedNode stringValue] boolValue]];
40+
}
3741

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

0 commit comments

Comments
 (0)