Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CoreData: Inverse relationships not maintained (to-one on one size, to-many on the other, with abstract classes)



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: CoreData: Inverse relationships not maintained (to-one on one size, to-many on the other, with abstract classes) (From: John Timmer <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.