diff --git a/momcom/NSEntityDescription+momcom.m b/momcom/NSEntityDescription+momcom.m index 662883e7..3e8c332a 100644 --- a/momcom/NSEntityDescription+momcom.m +++ b/momcom/NSEntityDescription+momcom.m @@ -28,6 +28,9 @@ + (NSEntityDescription *)baseEntityForXML:(NSXMLElement *)xmlNode if ([attributeName isEqualToString:@"name"]) { [entityDescription setName:attributeString]; } else if ([attributeName isEqualToString:@"representedClassName"]) { + if ([attributeString hasPrefix:@"."]) { + attributeString = [attributeString substringFromIndex:1]; + } [entityDescription setManagedObjectClassName:attributeString]; } else if ([attributeName isEqualToString:@"elementID"]) { [entityDescription setRenamingIdentifier:attributeString];