Re: owns destination + deny prohibited?
Re: owns destination + deny prohibited?
- Subject: Re: owns destination + deny prohibited?
- From: Jesse Tayler via Webobjects-dev <email@hidden>
- Date: Sun, 27 Feb 2022 08:39:25 -0500
You are missing the code to do just that policy. The model rules are simplistic
and so owning means it owns and removes so your rules don’t work together but
you’d be needing and wanting to trigger that delete with your own policy and
code
> On Feb 27, 2022, at 6:45 AM, OCsite via Webobjects-dev
> <email@hidden> wrote:
>
> Hi there,
>
> as I am checking all my relationships to make sure I did not another mistake,
> I've bumped into something strange.
>
> It looks like EOF prohibits a combination of “owns destination” and the
> “deny” delete rule.
>
> Can perhaps anybody explain the rationale behind that?
>
> I must be overlooking something of importance, for it seems to me it is quite
> acceptable approach something like “a company owns all the departments.
> Whenever one is removed from the relationship, it should be deleted, no point
> for it existing separately. Still, I want to prevent deletion of a whole
> company which contains a non-zero number of departments; to prevent user
> errors, if somebody does want to delete a company, I want him to remove all
> its departments first”.
>
> What am I missing?
>
> Thanks,
> OC
>
> _______________________________________________
> 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