سؤال

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