mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-24 02:11:12 +01:00
WIP
This commit is contained in:
@@ -232,6 +232,22 @@ extension NSManagedObjectContext {
|
||||
|
||||
self.refreshAllObjects()
|
||||
}
|
||||
|
||||
@nonobjc
|
||||
internal func merge(fromPersistentHistory transactions: [NSPersistentHistoryTransaction]) {
|
||||
|
||||
for transaction in transactions {
|
||||
|
||||
guard let userInfo = transaction.objectIDNotification().userInfo else {
|
||||
|
||||
continue
|
||||
}
|
||||
NSManagedObjectContext.mergeChanges(
|
||||
fromRemoteContextSave: userInfo,
|
||||
into: [self]
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// MARK: Private
|
||||
|
||||
Reference in New Issue
Block a user