mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
How to add 'Constraint' support #158
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @asadali737 on GitHub (Aug 11, 2017).
I have a entity with unique constraint in it. While saving the record it's giving me error. How can I configure ManagedObjectContext to make this happen?
I am talking about
NSMergeByPropertyObjectTrumpMergePolicyFor reference please check out this link
@JohnEstropia commented on GitHub (Aug 12, 2017):
What error are you getting?
CoreStore already uses
NSMergeByPropertyObjectTrumpMergePolicy(see91fda01071/Sources/NSManagedObjectContext%2BSetup.swift (L68)),so any errors you are getting now may be conflicts you'll need to handle.