mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 04:46:01 +08:00
Fix incorrectly configuring identification attribute in Twitter Core Data example
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
[userMapping addAttributeMappingsFromArray:@[ @"name" ]];
|
||||
|
||||
RKEntityMapping *tweetMapping = [RKEntityMapping mappingForEntityForName:@"Tweet" inManagedObjectStore:managedObjectStore];
|
||||
userMapping.identificationAttributes = @[ @"statusID" ];
|
||||
tweetMapping.identificationAttributes = @[ @"statusID" ];
|
||||
[tweetMapping addAttributeMappingsFromDictionary:@{
|
||||
@"id": @"statusID",
|
||||
@"created_at": @"createdAt",
|
||||
|
||||
Reference in New Issue
Block a user