Re: CoreData: Inverse relationships not maintained (to-one on one size, to-many on the other, with abstract classes)
Re: CoreData: Inverse relationships not maintained (to-one on one size, to-many on the other, with abstract classes)
- Subject: Re: CoreData: Inverse relationships not maintained (to-one on one size, to-many on the other, with abstract classes)
- From: Jim Correia <email@hidden>
- Date: Tue, 31 May 2005 20:49:45 -0400
I've replaced the previous example with a much simplified version and
a new model that should more clearly demonstrate the problem.
Model:
http://homepage.mac.com/jimcorreia/tmp/BrokenInverseRelationships.png
Source:
http://homepage.mac.com/jimcorreia/tmp/BrokenInverseRelationships.zip
If I make a Toybox and two Games, setting the toybox on the Toys
doesn't update the inverse relationships.
If instead I make objects from the "flat" portion of the model, a
Cupboard and two pans, everything works fine.
Examining the model shows that the inverse relationship for owner was
lost somewhere along the way. If you change the define for
PATCH_MODEL to 1 and rebuild and run, the relationships in the
"complex" portion of the model start working.
Anyone want to convince me this is a stupid error on my part and not
a bug before I send it off?
Anyone want to comment on whether the workaround is reasonable?
Thanks,
Jim
_______________________________________________
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