mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-25 21:35:36 +08:00
Hook the RKManagedObjectMappingOperationDataSource into the Managed Object Context save lifecycle to avoid the creation of duplicate objects during sequential mapping operations
This commit is contained in:
@@ -213,7 +213,7 @@
|
||||
}
|
||||
|
||||
NSDictionary *mappingDictionary = @{ (keyPath ?: [NSNull null]) : mapping };
|
||||
RKMapperOperation *mapper = [[RKMapperOperation alloc] initWithObject:parsedData mappingsDictionary:mappingDictionary];
|
||||
RKMapperOperation *mapper = [[RKMapperOperation alloc] initWithRepresentation:parsedData mappingsDictionary:mappingDictionary];
|
||||
mapper.mappingOperationDataSource = self.mappingOperationDataSource;
|
||||
__block RKMappingResult *mappingResult;
|
||||
[self.managedObjectContext performBlockAndWait:^{
|
||||
|
||||
Reference in New Issue
Block a user