Re: Question on addObjectToBothSidesOfRelationshipWithKey
Re: Question on addObjectToBothSidesOfRelationshipWithKey
- Subject: Re: Question on addObjectToBothSidesOfRelationshipWithKey
- From: James Cicenia <email@hidden>
- Date: Wed, 25 Jul 2007 06:46:08 -0500
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:
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:
This email sent to email@hidden