mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-04-17 06:29:40 +02:00
Merge pull request #191 from sidmani/prototype/Swift_4_0
Corrected type-checking in fetchExisting to preserve input type
This commit is contained in:
@@ -62,7 +62,9 @@ extension NSManagedObjectContext: FetchableSource, QueryableSource {
|
|||||||
|
|
||||||
return object
|
return object
|
||||||
}
|
}
|
||||||
return T.cs_fromRaw(object: existingRawObject)
|
|
||||||
|
let objectDynamicType = type(of: object)
|
||||||
|
return objectDynamicType.cs_fromRaw(object: existingRawObject)
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user