Christopher Doyle wrote:

> remove child objects in other tables.  Unless there's a built-in way
> of removing children...?

Your DB may allow you to declare your foreign keys 'ON DELETE CASCADE' or
'ON DELETE NULL'

(I can imagine cases where a hook like this would be useful though if it
doesn't already exist - especially for asserting a certain state before
allowing the removal or change to proceed. It pays to be paranoid about
destroying information irrevocably :) )

-- 
Stuart Bishop <[EMAIL PROTECTED]>   http://www.canonical.com/
Canonical Ltd.                                http://www.ubuntu.com/

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
storm mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/storm

Reply via email to