CoreData predicate ANY + AND with to-many relationship
问题 I have those entities defined in my model: [Sample] - results (to many relation with [Result]) [Parameter] - results (to many relation with [Result]) - compliant (number value) [Result] - parameter (relation with [Parameter]) - sample (relation with [Sample]) For a [Sample] object "MySample", I need to get all [Parameter] objects that have: [Result].compliant = 1 AND [Result].sample = MySample So, I'm trying to fetch [Parameter] objects using predicate that will be a sum of those predicates: