我注意到,即使我没有访问该关系,当执行获取请求时,一对一关系的错误也会立即触发。特别是,方法中的断点newValueForRelationship:forObjectWithID:withContext:error:
会立即在 NSIncrementalStore 子类中命中。
- (id)newValueForRelationship:(NSRelationshipDescription *)relationship
forObjectWithID:(NSManagedObjectID *)objectID
withContext:(NSManagedObjectContext *)context
error:(NSError **)error
断点仅在我按预期访问多个关系(延迟加载)时才被命中。
有人可以帮忙吗?