nspredicate - Core Data: Fetching all entity objects having to-many-relationship object with certain value -
i have following relationship in core data:
what's correct nspredicate
courses having @ least 1 student on age of 25?
[nspredicate predicatewithformat:@"any students.age > %d", 25]
should work (as predicate fetch request "course" entity).
Comments
Post a Comment