CoreData: Using to-may relationships in fetch request predicates
CoreData: Using to-may relationships in fetch request predicates
- Subject: CoreData: Using to-may relationships in fetch request predicates
- From: Frank Illenberger <email@hidden>
- Date: Fri, 21 Aug 2009 17:13:53 +0200
Hi there,
in the typical CoreData example, if I want to fetch all departments
whose employees have a salary higher than a specified value, I will
perform a fetch on the Department entity using a predicate with the
following format:
"ANY employees.salary < %@"
This is working fine.
Now I want to fetch all departments whose employees fulfill the salary
condition AND are born after a certain date. I would expect something
like this to work:
"ANY (employees.salary < %@ AND employees.dateOfBirth > %@"
But it doesn't. Does anybody know if there is a way to use the ANY
statement with more than one condition?
Cheers
Frank
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden