I Figured out the problem. First and Last are reserved words.
Are inverse relationships needed for predicates to work for core data?
-
03-07-2022 - |
سؤال
Hi I'm very new to ios and I was wondering why I wasn't able to filter my results using this:
predicate = [NSPredicate predicateWithFormat:@"(pi.employee.last CONTAINS[c] %@)", searchText];
do inverse relationships need to be set for this predicate to work? In other words do i need a property from employee to to pi and from pi to Fetched Entity for this predicate to work?
thanks in advance
المحلول
لا تنتمي إلى StackOverflow