mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-31 14:33:21 +02:00
Workaround CoreData's bug when using NSFetchRequest's affectedStores property
This commit is contained in:
@@ -991,7 +991,7 @@ public final class ListMonitor<T: NSManagedObject> {
|
||||
|
||||
private init(context: NSManagedObjectContext, transactionQueue: GCDQueue, from: From<T>, sectionBy: SectionBy?, fetchClauses: [FetchClause], createAsynchronously: ((ListMonitor<T>) -> Void)?) {
|
||||
|
||||
let fetchRequest = NSFetchRequest()
|
||||
let fetchRequest = CoreStoreFetchRequest()
|
||||
fetchRequest.fetchLimit = 0
|
||||
fetchRequest.resultType = .ManagedObjectResultType
|
||||
fetchRequest.fetchBatchSize = 20
|
||||
|
||||
@@ -175,7 +175,7 @@ public final class ObjectMonitor<T: NSManagedObject> {
|
||||
|
||||
private init(context: NSManagedObjectContext, object: T) {
|
||||
|
||||
let fetchRequest = NSFetchRequest()
|
||||
let fetchRequest = CoreStoreFetchRequest()
|
||||
fetchRequest.entity = object.entity
|
||||
fetchRequest.fetchLimit = 0
|
||||
fetchRequest.resultType = .ManagedObjectResultType
|
||||
|
||||
Reference in New Issue
Block a user