• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
CoreData: Using to-may relationships in fetch request predicates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: CoreData: Using to-may relationships in fetch request predicates
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: Bindings & Reverting Properties
  • Next by Date: Re: CoreData: Using to-may relationships in fetch request predicates
  • Previous by thread: Re: Toll-free bridging, say for NSDictionary and CFDictionary.
  • Next by thread: Re: CoreData: Using to-may relationships in fetch request predicates
  • Index(es):
    • Date
    • Thread