From 3db504e8998b1fdc0461b7e2977f49fa86464ffe Mon Sep 17 00:00:00 2001 From: pookey Date: Thu, 21 Sep 2006 14:40:13 +0000 Subject: [PATCH] fixes #92 (and second test of post-commit script...) --- Doctrine/EventListener/Chain.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doctrine/EventListener/Chain.php b/Doctrine/EventListener/Chain.php index 86b315857..ee7e2408e 100644 --- a/Doctrine/EventListener/Chain.php +++ b/Doctrine/EventListener/Chain.php @@ -154,6 +154,7 @@ class Doctrine_EventListener_Chain extends Doctrine_Access { $listener->onSaveCascade($record); } } + public function onPreSaveCascade(Doctrine_Record $record) { foreach($this->listeners as $listener) { $listener->onPreSaveCascade($record); @@ -165,6 +166,7 @@ class Doctrine_EventListener_Chain extends Doctrine_Access { $listener->onDeleteCascade($record); } } + public function onPreDeleteCascade(Doctrine_Record $record) { foreach($this->listeners as $listener) { $listener->onPreDeleteCascade($record);