mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-03-29 09:09:02 +08:00
Remove extraneous assert on deletion case
This commit is contained in:
@@ -171,7 +171,6 @@ static NSDictionary *RKDictionaryFromDictionaryWithManagedObjectsAtKeyPathsRefet
|
||||
} else if ([value isKindOfClass:[NSManagedObject class]]) {
|
||||
// Object becomes nil if deleted
|
||||
value = [value managedObjectContext] ? [managedObjectContext existingObjectWithID:[value objectID] error:&error] : nil;
|
||||
NSCAssert(value, @"Failed to find existing object with ID %@ in context %@: %@", [value objectID], managedObjectContext, error);
|
||||
}
|
||||
|
||||
RKSetMappedValueForKeyPathInDictionary(value, keyPath, newDictionary);
|
||||
|
||||
Reference in New Issue
Block a user