CoreData merge conflict shows managed object version change not data

后端 未结 1 419
抹茶落季
抹茶落季 2021-01-19 17:44

I am have an entity in core data and I try to update it from two different context. I am storing managedObjectID of my managed object which I need to update as it is thread

相关标签:
1条回答
  • 2021-01-19 18:28

    As mentioned by @Husam in comment, try to set MergePolicy on ManagedObjectContext as:

     managedObjectContext.mergePolicy = NSMergeByPropertyObjectTrumpMergePolicy
    

    Hope this help!

    0 讨论(0)
提交回复
热议问题