Re : EOGeneralAdaptorException : deleteRowDescribedByQualifierEntity
Re : EOGeneralAdaptorException : deleteRowDescribedByQualifierEntity
- Subject: Re : EOGeneralAdaptorException : deleteRowDescribedByQualifierEntity
- From: Marc-Alexis Côté <email@hidden>
- Date: Mon, 21 Mar 2005 19:01:39 -0500
When the application is restarted and a dealer is deleted, one of it's two
addresses are deleted. I have checked the eomodel, and the relationships
seem to be pointing at the right place.
The relationships are unidirectional. This means I was incorrectly using the
removeObjectFromBothSidesOfRelationshipWithKey method.
Please see my other post for a concise example that illustrates the crash.
Le 20/03/05 21:00, « Christian Pekeler » <email@hidden> a écrit :
>> I have a Dealer entity which has
>> a relationship to two Address entities. I get a
>> EOGeneralAdaptorException
>> (deleteRowDescribedByQualifierEntity) exception when I try to delete a
>> Dealer entity in the same session that I create it.
>
> Does that mean you're able to delete the dealer with it's addresses
> after restarting the application? Also, are the relationships
> bidirectional, i.e. is there a relationship from Address back to
> Dealer? If that is the case, then you might be seeing a symptom for
> incorrectly associated objects at creation time. So instead of
> newShippingAddress.setDealer(newDealer) use
> newShippingAddress.addObjectToBothSidesOfRelationshipWithKey(newDealer,
> "dealer").
>
> Christian
>
_______________________________________________
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