I noticed that the fault for a to-one relationship fires immediately when the fetch request is executed even though I'm not accessing the relationship. Particularly, a breakpoint in the method newValueForRelationship:forObjectWithID:withContext:error:
is hit immediately in the NSIncrementalStore subclass.
- (id)newValueForRelationship:(NSRelationshipDescription *)relationship
forObjectWithID:(NSManagedObjectID *)objectID
withContext:(NSManagedObjectContext *)context
error:(NSError **)error
The breakpoint is only hit when I access the relationship as expected for to-many relationships as expected (lazy loaded).
Can someone please help?