mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-05-27 09:41:53 +08:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user