From b9ec66f42527554e60b39e37787ecea0073924a1 Mon Sep 17 00:00:00 2001 From: John Estropia Date: Mon, 28 Sep 2015 20:44:19 +0900 Subject: [PATCH] fix entityNameMapping bug --- CoreStore/Internal/NSManagedObjectModel+Setup.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CoreStore/Internal/NSManagedObjectModel+Setup.swift b/CoreStore/Internal/NSManagedObjectModel+Setup.swift index 68da04a..ace2548 100644 --- a/CoreStore/Internal/NSManagedObjectModel+Setup.swift +++ b/CoreStore/Internal/NSManagedObjectModel+Setup.swift @@ -154,7 +154,7 @@ internal extension NSManagedObjectModel { return self.entityNameMapping.reduce([:]) { (var mapping, pair) in - mapping[pair.0] = (NSClassFromString(pair.1)! as! NSManagedObject.Type) + mapping[pair.1] = (NSClassFromString(pair.0)! as! NSManagedObject.Type) return mapping } }