From 480a125a20200ed6fa5ad1b04cbddf9af772bd33 Mon Sep 17 00:00:00 2001 From: Martin Carlberg Date: Tue, 5 Apr 2016 18:43:32 +0200 Subject: [PATCH] Fixed: When setting entity name from code the _managedProxy will be null and the name will not be stored --- AppKit/CPObjectController.j | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/AppKit/CPObjectController.j b/AppKit/CPObjectController.j index addc031b9..6bd5102db 100644 --- a/AppKit/CPObjectController.j +++ b/AppKit/CPObjectController.j @@ -192,6 +192,12 @@ */ - (void)setEntityName:(CPString)newEntityName { + if (!_managedProxy) + { + _managedProxy = [[_CPManagedProxy alloc] init]; + _isUsingManagedProxy = YES; + } + [_managedProxy setEntityName:newEntityName]; }