mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-05-24 05:14:31 +08:00
Fix issue with incorrect quoting within the mapping cache causing duplicated objects. closes #598. refs #578
This commit is contained in:
@@ -164,7 +164,7 @@
|
||||
NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];
|
||||
[fetchRequest setEntity:entity];
|
||||
[fetchRequest setFetchLimit:1];
|
||||
[fetchRequest setPredicate:[NSPredicate predicateWithFormat:@"%@ = %@", mapping.primaryKeyAttribute, lookupValue]];
|
||||
[fetchRequest setPredicate:[NSPredicate predicateWithFormat:@"%K = %@", mapping.primaryKeyAttribute, lookupValue]];
|
||||
[fetchRequest setResultType:NSManagedObjectIDResultType];
|
||||
|
||||
NSArray *objectIds = [NSManagedObject executeFetchRequest:fetchRequest inContext:managedObjectContext];
|
||||
|
||||
Reference in New Issue
Block a user