fix bug when using ObjectMonitor with CoreStoreObjects

This commit is contained in:
John Estropia
2017-06-06 17:40:29 +09:00
parent 0304067beb
commit f9b6dd0c6a
4 changed files with 9 additions and 24 deletions

View File

@@ -272,7 +272,7 @@ public final class ObjectMonitor<D: DynamicObject>: Equatable {
let fetchedResultsController = CoreStoreFetchedResultsController(
context: context,
fetchRequest: fetchRequest.dynamicCast(),
from: nil as From<ObjectType>?,
from: From<ObjectType>([objectID.persistentStore?.configurationName]),
applyFetchClauses: Where("SELF", isEqualTo: objectID).applyToFetchRequest
)