• 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
Re: Core Data: Need help with fetch request
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data: Need help with fetch request


  • Subject: Re: Core Data: Need help with fetch request
  • From: Jakob Olesen <email@hidden>
  • Date: Sat, 14 Oct 2006 17:17:06 +0200


On 10/10/2006, at 21.27, Diederik Hoogenboom wrote:

I want to fetch some objects based on a condition existing in one of its relationships.

Example Object Model:

Car -> Wheel

A car can have one or more wheels. And a wheel has a property called color (to keep it simple an NSString). The relationship is called wheels. There is no inverse relationship.

What is your really, really good reason for not having an inverse relationship?
Is it one-to-many or many-to-many?


Unfortunately the fetch request does result in any objects retrieved.
I am using an SQL-lite store for this example.

What does the generated SQL look like? Does it change if you add an inverse relationship?


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Core Data: Need help with fetch request
      • From: Diederik Hoogenboom <email@hidden>
References: 
 >Core Data: Need help with fetch request (From: Diederik Hoogenboom <email@hidden>)

  • Prev by Date: Re: NSScroller customization
  • Next by Date: Re: KVC Problems with Indexed Accessor for To-Many Properties
  • Previous by thread: Core Data: Need help with fetch request
  • Next by thread: Re: Core Data: Need help with fetch request
  • Index(es):
    • Date
    • Thread