[storm] object lifecycle callbacks
Stuart Bishop
stuart.bishop at canonical.com
Fri Oct 26 09:14:16 BST 2007
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 <stuart.bishop at canonical.com> http://www.canonical.com/
Canonical Ltd. http://www.ubuntu.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/storm/attachments/20071026/a6709033/attachment.pgp
More information about the storm
mailing list