mirror of
https://github.com/zhigang1992/MagicalRecord.git
synced 2026-04-29 04:25:46 +08:00
Log when trying to use inContext: method and result is nil
This commit is contained in:
@@ -245,6 +245,10 @@ static NSUInteger defaultBatchSize = kMagicalRecordDefaultBatchSize;
|
||||
NSError *error = nil;
|
||||
NSManagedObject *inContext = [otherContext existingObjectWithID:[self objectID] error:&error];
|
||||
[MagicalRecord handleErrors:error];
|
||||
if (inContext == nil)
|
||||
{
|
||||
MRLog(@"Did not find object %@ in context %@", self, otherContext);
|
||||
}
|
||||
|
||||
return inContext;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user