From 5fde9030c716030733fd9462e097470ae726c653 Mon Sep 17 00:00:00 2001 From: John Rommel Estropia Date: Mon, 5 Jun 2017 08:03:37 +0900 Subject: [PATCH] use stronger namespace for CoreStoreObject's internal managed object type --- Sources/CoreStoreSchema.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/CoreStoreSchema.swift b/Sources/CoreStoreSchema.swift index 7fa7292..8d7bc82 100644 --- a/Sources/CoreStoreSchema.swift +++ b/Sources/CoreStoreSchema.swift @@ -268,7 +268,7 @@ public final class CoreStoreSchema: DynamicSchema { entityDescription.name = entity.entityName entityDescription.isAbstract = entity.isAbstract entityDescription.versionHashModifier = entity.versionHashModifier - entityDescription.managedObjectClassName = "\(NSStringFromClass(entity.type)).CoreStoreManagedObject" + entityDescription.managedObjectClassName = "\(NSStringFromClass(CoreStoreManagedObject.self)).\(NSStringFromClass(entity.type)).\(entity.entityName)" var keyPathsByAffectedKeyPaths: [KeyPath: Set] = [:] func createProperties(for type: CoreStoreObject.Type) -> [NSPropertyDescription] {