mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-18 08:30:37 +08:00
Fix for warning emitted due to elimination of findOrCreateInstanceOfEntity:. Search Word functionality restored. closes #584
* Updates to the Core Data layer such that NSManagedObjectContexts now have a reference to the managed object store they belong to. * NSManagedObject instances can now return the managed object store they belong to. * Relaxed the coupling to the sharedManager present within the RKSearchableManagedObject class. * Expanded documentation of RKSearchableManagedObject
This commit is contained in:
@@ -239,7 +239,7 @@
|
||||
|
||||
RKObjectMappingProvider* mappingProvider;
|
||||
RKObjectMappingDefinition *configuredObjectMapping = [self configuredObjectMapping];
|
||||
if (configuredObjectMapping) {
|
||||
if (configuredObjectMapping) {
|
||||
mappingProvider = [RKObjectMappingProvider mappingProvider];
|
||||
NSString *rootKeyPath = configuredObjectMapping.rootKeyPath ? configuredObjectMapping.rootKeyPath : @"";
|
||||
[mappingProvider setMapping:configuredObjectMapping forKeyPath:rootKeyPath];
|
||||
|
||||
Reference in New Issue
Block a user