nspredicate - Core Data: Fetching all entity objects having to-many-relationship object with certain value -


i have following relationship in core data: enter image description here

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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -