You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried setting the mergePolicy by loading AERecord with the myOptions parameters, but the mergePolicy option or configuration is not read correctly.
Currently I'm using this code to set the mergePolicy, is this the best (or only) way to do this?
I've tried setting the mergePolicy by loading AERecord with the myOptions parameters, but the mergePolicy option or configuration is not read correctly.
Currently I'm using this code to set the mergePolicy, is this the best (or only) way to do this?
AERecord.Context.default.mergePolicy = NSMergeByPropertyObjectTrumpMergePolicy AERecord.Context.background.mergePolicy = NSMergeByPropertyObjectTrumpMergePolicy AERecord.Context.main.mergePolicy = NSMergeByPropertyObjectTrumpMergePolicy
Full loading code:
`
let myOptions = [NSMigratePersistentStoresAutomaticallyOption: true, NSInferMappingModelAutomaticallyOption : true]
do {
try AERecord.loadCoreDataStack(options: myOptions)
AERecord.Context.default.mergePolicy = NSMergeByPropertyObjectTrumpMergePolicy
AERecord.Context.background.mergePolicy = NSMergeByPropertyObjectTrumpMergePolicy
AERecord.Context.main.mergePolicy = NSMergeByPropertyObjectTrumpMergePolicy
} catch {
debugPrint(error)
}
`
The text was updated successfully, but these errors were encountered: