From e2668085c095f3e4620b36b793ab19e4d7d44686 Mon Sep 17 00:00:00 2001 From: Malcolm Hall Date: Mon, 26 Jun 2017 15:20:54 +0100 Subject: [PATCH] Support toMany relations --- momdec/NSRelationshipDescription+xmlElement.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/momdec/NSRelationshipDescription+xmlElement.m b/momdec/NSRelationshipDescription+xmlElement.m index 6fba300..032c810 100644 --- a/momdec/NSRelationshipDescription+xmlElement.m +++ b/momdec/NSRelationshipDescription+xmlElement.m @@ -40,6 +40,10 @@ - (NSXMLElement *)xmlElement [element addAttribute:[NSXMLNode attributeWithName:@"inverseEntity" stringValue:[[[self inverseRelationship] entity] name]]]; } + if(self.toMany){ + [element addAttribute:[NSXMLNode attributeWithName:@"toMany" stringValue:@"YES"]]; + } + return element; } @end