Fixed: When setting entity name from code the _managedProxy will be null and the name will not be stored

This commit is contained in:
Martin Carlberg committed 2016-04-05 18:43:32 +02:00
1 parent 598a6ebaed
commit 480a125a20
1 file changed
+6
+6
View File
@@ -192,6 +192,12 @@
*/
- (void)setEntityName:(CPString)newEntityName
{
if (!_managedProxy)
{
_managedProxy = [[_CPManagedProxy alloc] init];
_isUsingManagedProxy = YES;
}
[_managedProxy setEntityName:newEntityName];
}