Re: Problem with relationships in Core Data
Re: Problem with relationships in Core Data
- Subject: Re: Problem with relationships in Core Data
- From: mmalc crawford <email@hidden>
- Date: Tue, 26 Sep 2006 10:41:00 -0700
On Sep 26, 2006, at 7:30 AM, Remco Poelstra wrote:
I've a problem with the relationships in Core Data.
I've two entities A and B. The both link in an inverse relationship to
each other. I've two array controllers, one which manages all A
entities,
the other which manages the B entities which are in the relation
from A to
B.
When send a remove message to the B controller, the relation from A
to B
is updated to reflect the fact that the selected B entity is
removed. The
problem now is that the B entity still keeps it's reference to
entity A.
Shouldn't the arraycontroller update that relationship? Or do I've
to do
that myself?
Please use the correct terminology, it makes it easier to try to
follow what you're describing (see <http://lists.apple.com/archives/Cocoa-dev/2006/Sep/msg00962.html
>).
It's not clear from your description whether the actual relationship
is incorrect or if one of the array controllers is displaying
something you don't expect?
Core Data normally manages relationships and inverse relationships for
you -- see <http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdUsingMOs.html#//apple_ref/doc/uid/TP40001652-207874
>. Have you defined custom accessor methods for your relationships?
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