core data - NSPredicate and KVC collection operators -


assume have core data class employer 1-n relationship called employees.

this employees relationship maps nsset. far good.

i want create nsfetchrequest of employer predicate requieres employees > 0.

how can create predicate?

i tried "employees.@count", seems consider whole thing keypath.

you got syntax backwards:

@count.employees 

Comments

Popular posts from this blog

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -