Merge pull request #191 from sidmani/prototype/Swift_4_0

Corrected type-checking in fetchExisting to preserve input type
This commit is contained in:
John Estropia authored and GitHub committed 2017-08-16 20:20:23 +09:00
commit 1e51000155
1 file changed
+3 -1
@@ -62,7 +62,9 @@ extension NSManagedObjectContext: FetchableSource, QueryableSource {
return object
}
return T.cs_fromRaw(object: existingRawObject)
let objectDynamicType = type(of: object)
return objectDynamicType.cs_fromRaw(object: existingRawObject)
}
catch {