mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-19 07:54:26 +01:00
allow nested transactions
This commit is contained in:
@@ -41,11 +41,12 @@ internal extension NSManagedObjectContext {
|
||||
|
||||
return parentContext.parentStack
|
||||
}
|
||||
|
||||
return self.getAssociatedObjectForKey(&PropertyKeys.parentStack)
|
||||
}
|
||||
set {
|
||||
|
||||
if let parentContext = self.parentContext {
|
||||
if self.parentContext != nil {
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user