From c610ba0ab200906923c9ef81b80a4ade222a9ab6 Mon Sep 17 00:00:00 2001 From: ppetermann Date: Wed, 24 Oct 2007 13:44:58 +0000 Subject: [PATCH] corrected creation of Doctrine_Event object to prevent unexpected behaviour during usage of preHydrate/postHydrate hooks. --- lib/Doctrine/Hydrate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/Hydrate.php b/lib/Doctrine/Hydrate.php index de93e2b94..1f20c7ae3 100644 --- a/lib/Doctrine/Hydrate.php +++ b/lib/Doctrine/Hydrate.php @@ -1050,7 +1050,7 @@ class Doctrine_Hydrate extends Doctrine_Locator_Injectable implements Serializab return $array; } - $event = new Doctrine_Event(Doctrine_Event::HYDRATE, null); + $event = new Doctrine_Event(null, Doctrine_Event::HYDRATE, null); // for every getRecordListener() there is a little bit // logic behind it, hence calling it multiple times on