Merge branch 'development' of github.com:CFKevinRef/RestKit into CFKevinRef-development

This commit is contained in:
Blake Watters
2012-11-07 21:59:38 -05:00
13 changed files with 175 additions and 72 deletions

View File

@@ -28,7 +28,7 @@
NSAssert(managedObjectContext, @"Cannot find existing managed object with a nil context");
id searchValue = primaryKeyValue;
Class type = [[RKPropertyInspector sharedInspector] typeForProperty:primaryKeyAttribute ofEntity:entity];
Class type = [[RKPropertyInspector sharedInspector] classForPropertyNamed:primaryKeyAttribute ofEntity:entity];
if (type && ([type isSubclassOfClass:[NSString class]] && NO == [primaryKeyValue isKindOfClass:[NSString class]])) {
searchValue = [NSString stringWithFormat:@"%@", primaryKeyValue];
} else if (type && ([type isSubclassOfClass:[NSNumber class]] && NO == [primaryKeyValue isKindOfClass:[NSNumber class]])) {