Re: Core Data fetch returns wrong entities.
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