mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 04:46:01 +08:00
Fixed breakage in OS X support
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
NSAssert(primaryKeyAttribute, @"Cannot connect relationship without primaryKeyAttribute");
|
||||
|
||||
RKObjectRelationshipMapping* relationshipMapping = [self.objectMapping mappingForRelationship:relationshipName];
|
||||
id<RKObjectMappingDefinition> mapping = relationshipMapping.mapping;
|
||||
RKObjectMappingDefinition *mapping = relationshipMapping.mapping;
|
||||
NSAssert(mapping, @"Attempted to connect relationship for keyPath '%@' without a relationship mapping defined.");
|
||||
if (! [mapping isKindOfClass:[RKObjectMapping class]]) {
|
||||
RKLogWarning(@"Can only connect relationships for RKObjectMapping relationships. Found %@: Skipping...", NSStringFromClass([mapping class]));
|
||||
|
||||
@@ -433,7 +433,7 @@ static NSString* const RKManagedObjectStoreThreadDictionaryEntityCacheKey = @"RK
|
||||
[fetchRequest setResultType:NSManagedObjectIDResultType];
|
||||
|
||||
objectIds = [NSManagedObject executeFetchRequest:fetchRequest];
|
||||
RKLogInfo(@"Caching all %d %@ objectsIDs to thread local storage", [objectIds count], entity.name);
|
||||
RKLogInfo(@"Caching all %ld %@ objectsIDs to thread local storage", (long) [objectIds count], entity.name);
|
||||
NSMutableDictionary* dictionary = [NSMutableDictionary dictionary];
|
||||
if ([objectIds count] > 0) {
|
||||
BOOL coerceToString = [self shouldCoerceAttributeToString:primaryKeyAttribute forEntity:entity];
|
||||
|
||||
Reference in New Issue
Block a user