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