mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-18 14:48:28 +01:00
always create subclass type from cs_rawObject
This commit is contained in:
1 parent
fa682215c5
commit
8d86425875
2 files changed
+17
-1
No files matched your search
@@ -31,6 +31,17 @@ import Foundation
|
||||
|
||||
internal extension NSEntityDescription {
|
||||
|
||||
@nonobjc
|
||||
internal var dynamicObjectType: DynamicObject.Type? {
|
||||
|
||||
guard let userInfo = self.userInfo,
|
||||
let typeName = userInfo[UserInfoKey.CoreStoreManagedObjectTypeName] as! String? else {
|
||||
|
||||
return nil
|
||||
}
|
||||
return (NSClassFromString(typeName) as! DynamicObject.Type)
|
||||
}
|
||||
|
||||
@nonobjc
|
||||
internal var coreStoreEntity: DynamicEntity? {
|
||||
|
||||
|
||||
Reference in new issue
Block a user