I have the following NSManagedObjects
:
Product <<->> ProductAttribute <->> ProductAttributeOption
What's the correct way for using an NSPredicate to fetch the ProductAttributeOption
s based on the product?
I've tried the following without luck:
[NSPredicate predicateWithFormat:@"ANY SELF.productAttribute.products MATCHES %@", product]
[NSPredicate predicateWithFormat:@"ANY SELF.productAttribute@distinctUnionOfSets.products MATCHES %@"", product]
[NSPredicate predicateWithFormat:@"ANY SELF.productAttribute.@distinctUnionOfSets.giftProducts LIKE[cd] %@", self.giftProduct]
Any advice? Thanks!