mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-20 07:21:30 +01:00
Added utility for re-faulting all objects in a transaction/dataStack
This commit is contained in:
1 parent
f5627f0855
commit
c07435e866
4 files changed
+46
No files matched your search
@@ -188,6 +188,19 @@ public /*abstract*/ class BaseDataTransaction {
|
||||
objects.forEach { context.fetchExisting($0)?.deleteFromContext() }
|
||||
}
|
||||
|
||||
/**
|
||||
Refreshes all registered objects `NSManagedObject`s in the transaction.
|
||||
*/
|
||||
public func refreshAllObjectsAsFaults() {
|
||||
|
||||
CoreStore.assert(
|
||||
self.isRunningInAllowedQueue(),
|
||||
"Attempted to refresh entities outside their designated queue."
|
||||
)
|
||||
|
||||
self.context.refreshAllObjectsAsFaults()
|
||||
}
|
||||
|
||||
|
||||
// MARK: Internal
|
||||
|
||||
|
||||
Reference in new issue
Block a user