On 6/22/11 7:44 AM, Ed Leafe wrote:
> On Jun 22, 2011, at 10:32 AM, Paul McNett wrote:
>
>> So if the parent link field *doesn't* refer to the primary key of the child, 
>> the
>> parent shouldn't cascade deletes to this bizobj. Is this something that is a 
>> general
>> truth and we can therefore hard-code for in dabo?
>
>
>       I'm not sure I follow the thinking here, but it sure feels like a 
> solution to the wrong problem. IOW, if you have a relation like that, you are 
> taking on the responsibility for handling the behavior of how to link to the 
> child records. That's certainly not a common situation, and as such, should 
> probably not be in the framework.

It seemed to me that a relation to anything but the primary key of the child 
would - 
by definition - exclude that child from being in the cascade delete set.

I agree it isn't common, but that could also be an argument for putting it in 
the 
framework, so the appdev doesn't have to remember to code around it.

Paul


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to