Re: Cascade delete when no relationship: how?
Re: Cascade delete when no relationship: how?
- Subject: Re: Cascade delete when no relationship: how?
- From: Jean Pierre Malrieu <email@hidden>
- Date: Tue, 25 Mar 2014 19:50:23 +0100
Thanks,
I didn't know about this class. Seems like Wonder has invented it all, like the ancient Greeks invented all the ideas.
Le 21 mars 2014 à 17:55, Kieran Kelleher <email@hidden> a écrit :
> er.extensions.eof.ERXUnmodeledToManyRelationship<S, D> might meet your needs here. In your B.mightDelete() (not willDelete()) you can call ERXUnmodeledToManyRelationship.deleteAllObjectsRelationships().
>
>
> On Mar 19, 2014, at 3:30 PM, Jean Pierre Malrieu <email@hidden> wrote:
>
>> Hi,
>>
>> Suppose I have a mandatory to-one relationship from A to B. Suppose there is no inverse relationship (many A's can be related to the same B, so I don't want many As to be faulted when I fetch a B).
>> What if the smarter way to ensure that A is deleted when I delete it's B? (assuming it is the correct behavior for me).
>>
>> TIA
>>
>> JPM
>> _______________________________________________
>> 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
>
_______________________________________________
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