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: Question on addObjectToBothSidesOfRelationshipWithKey



Well after spending too much time checking the model etc... I just assumed it is a bug and explicitly set the relations and it works now.

James

On Jul 24, 2007, at 9:29 PM, Lachlan Deck wrote:

On 25/07/2007, at 5:57 AM, James Cicenia wrote:

I checked the model "carefully"...

the relationship from pn -- ndt is such where ndt uses vertical inheritance so has a qualifier in it.

If you're using vertical inheritance the rule-of-thumb I found that works is: 'every non-class foreign key in parent entity must be set as class property in sub-entities'


Otherwise EOF gets confused and doesn't properly create the relationships... you can try this out in a D2W app to see when the relationship is properly created or not.

with regards,
--

Lachlan Deck



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/james% 40jimijon.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden
References: 
 >Question on addObjectToBothSidesOfRelationshipWithKey (From: James Cicenia <email@hidden>)
 >Re: Question on addObjectToBothSidesOfRelationshipWithKey (From: Chuck Hill <email@hidden>)
 >Re: Question on addObjectToBothSidesOfRelationshipWithKey (From: James Cicenia <email@hidden>)
 >Re: Question on addObjectToBothSidesOfRelationshipWithKey (From: Lachlan Deck <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.