• 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 fetch returns wrong entities.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data fetch returns wrong entities.


  • Subject: Re: Core Data fetch returns wrong entities.
  • From: mmalcolm crawford <email@hidden>
  • Date: Sun, 5 Mar 2006 11:34:43 -0800


On Mar 5, 2006, at 5:10 AM, David Burnett wrote:

[fetch setEntity:
[NSEntityDescription
entityForName:@"Genome"
inManagedObjectContext:moc]];
[...]
The NSArray contains a mix of all the Genome and XForm entities in the context.


This is the correct behaviour...
In your model, Genome is the parent entity of XForm, so when you execute your fetch you get both instances of Genome and of XForm.


mmalc

_______________________________________________
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


References: 
 >Core Data fetch returns wrong entities. (From: David Burnett <email@hidden>)

  • Prev by Date: Re: Cut, Copy, & Paste Question.
  • Next by Date: Re: Cut, Copy, & Paste Question.
  • Previous by thread: Core Data fetch returns wrong entities.
  • Next by thread: Re: Core Data fetch returns wrong entities.
  • Index(es):
    • Date
    • Thread