Welcome to the Cookbook

loading...

3.7.7.6 beforeDelete

beforeDelete(boolean $cascade)

Place any pre-deletion logic in this function. This function should return true if you want the deletion to continue, and false if you want to abort.

The value of $cascade will be true if records that depend on this record will also be deleted.