I have an entity with a to-many relationship. After I fetch a subset of objects from my entity, I would like to get the ManagedObjectIDs of the relationship objects - without firing a fault. Is this possible? My understanding from the documentation is that calling objectID on a fault does not cause it to fire, but when I try the following line, a fault is fired for each object's relationship nonetheless:
[word.articles valueForKeyPath:@"objectID"];
I have also tried the following, with the same result:
[word valueForKeyPath:@"articles.objectID"];
I have now also tried the following, but unfortunately article faults still fire:
for (Article *article in word.articles) {
[articleIDs addObject:article.objectID];
}
Any help would be greatly appreciated please!