Re: Core Data Problem: Creating a child object creates unwanted parent
Re: Core Data Problem: Creating a child object creates unwanted parent
- Subject: Re: Core Data Problem: Creating a child object creates unwanted parent
- From: Jerry Krinock <email@hidden>
- Date: Wed, 13 May 2009 22:10:28 -0700
On 2009 May 13, at 15:26, Kent Hauser wrote:
My actual problem is that when I create a new taskRecord (in a
tableView delegate helper method I call 'getMutableTaskRecord'), the
new taskRecord entity is created and added to the student's to-many
taskRecords. The inverse in the new taskRecord is set to the student
automagically when I invoke [student addTaskRecordsObject:newTask].
Everything is perfect -- except that every time I create a
taskRecord, I create a new Student! I can go into my student editor
& delete them, but needless to say, something's not right.
Well, I've never seen Core Data create objects on its own. Reply and
post some code.
_______________________________________________
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