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

@@ -286,7 +286,7 @@ relationship. Relationships are processed using an object mapping as well.
[mapping mapFromKeyPath:@"(firstName).id" toAttribute:"userID"];
[mapping mapFromKeyPath:@"(firstName).email" toAttribute:"email"];
[[RKObjectManager sharedManager].mappingProvider setMapping:mapping forKeyPath:@"users"];
[[RKObjectManager sharedManager].mappingProvider setObjectMapping:mapping forKeyPath:@"users"];
*/
- (void)mapKeyOfNestedDictionaryToAttribute:(NSString*)attributeName;