Re: Core Data fetch returns wrong entities.
Re: Core Data fetch returns wrong entities.
- Subject: Re: Core Data fetch returns wrong entities.
- From: Chris Hanson <email@hidden>
- Date: Sun, 5 Mar 2006 13:16:43 -0800
On Mar 5, 2006, at 5:10 AM, David Burnett wrote:
The NSArray contains a mix of all the Genome and XForm entities
in the context.
It sounds like your XForm entity is a subentity of your Genome entity.
Also, it's important to be precise with terminology: You aren't
getting entities back from a fetch, you're getting instances of
entities. Think of an entity as similar to a class.
a) I can find no examples or description of how to create and
configure
a managed object without adding it to the context.I would have
thought there would be a mention is the doc's in the Manipulating
Relationships
chapter of the Relationships article of the Core Data Programming
Guide if it was not the proper code to use.
Managed objects must be inserted in a (not "the") managed object
context before they are manipulated. A managed object context is
intimately involved in the life cycle of a managed object.
-- Chris
_______________________________________________
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