mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-01-12 22:51:50 +08:00
Merge pull request #1237 from geon/patch-1
addAttributeMappings: doesn't exist.
This commit is contained in:
@@ -147,7 +147,7 @@
|
||||
|
||||
// JSON looks like {"project": { "name": "Project Name", "userID": 1234, "projectID": 1 } }
|
||||
RKEntityMapping *mapping = [RKEntityMapping mappingForEntityForName:@"Project" inManagedObjectStore:managedObjectStore];
|
||||
[mapping addAttributeMappings:@[ @"name", @"userID", @"projectID" ]];
|
||||
[mapping addAttributeMappingsFromArray:@[ @"name", @"userID", @"projectID" ]];
|
||||
|
||||
// Find a 'User' whose value for the 'userID' object is equal to the value stored on the 'userID' attribute of the 'Project' and assign it to the relationship
|
||||
// In other words, "Find the User whose userID == 1234 and assign that object to the 'user' relationship"
|
||||
|
||||
Reference in New Issue
Block a user