enter image description here

How do I select all ProdusComandat objects of all ComenziActive Objects?

有帮助吗?

解决方案

You could fetch the "ProdusComandat" objects without a predicate, that would give you all objects of that entity:

NSFetchRequest *request = [NSFetchRequest fetchRequestWithEntityName:@"ProdusComandat"];

If you want only the "ProdusComandat" that are related to a "ComenziActive" object, add the predicate

NSPredicate *predicate = [NSPredicate predicateWithFormat:@"comanda != NULL"];
request.predicate = predicate;
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top