Commit 3db504e8 authored by pookey's avatar pookey

fixes #92 (and second test of post-commit script...)

parent 2ff5d01f
...@@ -154,6 +154,7 @@ class Doctrine_EventListener_Chain extends Doctrine_Access { ...@@ -154,6 +154,7 @@ class Doctrine_EventListener_Chain extends Doctrine_Access {
$listener->onSaveCascade($record); $listener->onSaveCascade($record);
} }
} }
public function onPreSaveCascade(Doctrine_Record $record) { public function onPreSaveCascade(Doctrine_Record $record) {
foreach($this->listeners as $listener) { foreach($this->listeners as $listener) {
$listener->onPreSaveCascade($record); $listener->onPreSaveCascade($record);
...@@ -165,6 +166,7 @@ class Doctrine_EventListener_Chain extends Doctrine_Access { ...@@ -165,6 +166,7 @@ class Doctrine_EventListener_Chain extends Doctrine_Access {
$listener->onDeleteCascade($record); $listener->onDeleteCascade($record);
} }
} }
public function onPreDeleteCascade(Doctrine_Record $record) { public function onPreDeleteCascade(Doctrine_Record $record) {
foreach($this->listeners as $listener) { foreach($this->listeners as $listener) {
$listener->onPreDeleteCascade($record); $listener->onPreDeleteCascade($record);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment