I want my fetchRequest to only return rows that have a relationship that's not nil, but I am having problem forming the predicate for this. How should this be done?
[Update] I should mention, the relationship is to-many.
I want my fetchRequest to only return rows that have a relationship that's not nil, but I am having problem forming the predicate for this. How should this be done?
[Update] I should mention, the relationship is to-many.
If the relationship is named myRelation
, a predicate like self.myRelation != nil
should work.