self.context=[[NSManagedObjectContext alloc] initWithConcurrencyType:NSPrivateQueueConcurrencyType];
[self.context setPersistentStoreCoordinator:dm.PSC];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(mocDidSaveNotification:) name:NSManagedObjectContextDidSaveNotification object:nil];
[self.context setMergePolicy:NSMergeByPropertyObjectTrumpMergePolicy];//important!!!
Read More:
- Kubernetes reported an error: matchexpressions: [] v1. Labelselector requirement (NIL)}: field is immutable
- K8S error validating data: ValidationError(Deployment.spec): missing required field selector
- Springboot configuration project access path URL root path
- NLTK Error [nltk_data] Error loading stopwords: hostname
- Find malloc_error_Root cause method of break error
- How to Fix Node SASS Error in Vue + webpack project after nodejs upgrade
- Spring bean object cannot be injected into quartz job
- Spring boot uses configuration interface webmvcconfigurer to solve cross domain problems
- QT solves error: use of deleted function and is private within this context
- Sublime text 3 does not support Chinese/[decode error – output not UTF-8] solution
- The loop of life and death occurs when the El table component of element UI is bidirectional bound
- Error: (list) object cannot be coerced to type ‘double’
- On error resume next, on error goto 0, err usage
- [619]libgtk-3.so.0 or libXt.so.6: cannot open shared object file: No such file or directory
- JSON parse error: Can not deserialize instance of java.lang.String out of START_OBJECT token
- Abnormal [System.InvalidOperationException: custom type mapping for ‘xxx’ is not specified or is not a solution
- [Solved] AS Warning: String literal in setText can not be translated. Use Android resources instead.
- How to Solve Error creating bean with name ‘log’loginController’
- Template cannot be rendered due to the joint query of populate in mongoose: syntax error: unexpected token r in JSON at position 0