[Solved] get all user who progam Id exit in a to many relation [closed]


The parentheses do not match in your predicate. And to compare with an array or set of values,
it is much less error-prone to use the %@ expansion:

NSArray *wantedIds = @[@1, @2];
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"ANY programs.programId IN %@", wantedIds];

0

solved get all user who progam Id exit in a to many relation [closed]