Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE TRIGGER trigger_name
- BEFORE DELETE ON table_name FOR EACH ROW
- BEGIN
- -- variable declarations
- -- trigger code
- END;
- public function beforeDelete() {
- if (!parent::beforeDelete()) {
- return false;
- }
- // ... custom code here ...
- return true;
- }
Add Comment
Please, Sign In to add comment