Added object mapping management to the mapping provider for folks who don't have keyPaths. Deprecated setMapping:forKeyPath: in favor of setObjectMapping:forKeyPath: for consistency with the other method signatures.

This commit is contained in:
Blake Watters
2011-06-20 10:41:30 -04:00
parent 2006633491
commit 3204682f72
14 changed files with 128 additions and 58 deletions

View File

@@ -114,7 +114,7 @@ NSString* const RKDefaultSeedDatabaseFileName = @"RKSeedDatabase.sqlite";
RKObjectMappingProvider* mappingProvider = nil;
if (nilOrObjectMapping) {
mappingProvider = [[RKObjectMappingProvider new] autorelease];
[mappingProvider setMapping:nilOrObjectMapping forKeyPath:@""];
[mappingProvider setObjectMapping:nilOrObjectMapping forKeyPath:@""];
} else {
mappingProvider = _manager.mappingProvider;
}