From 931bc8de2385dc7c3bd65d10be83d64992d5aba5 Mon Sep 17 00:00:00 2001 From: pookey Date: Wed, 11 Jul 2007 15:32:13 +0000 Subject: [PATCH] * Correction to Record Event Chain stuff * Updating AuditLog to new way of doing array hydration --- lib/Doctrine/AuditLog.php | 2 +- lib/Doctrine/Configurable.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/AuditLog.php b/lib/Doctrine/AuditLog.php index a6c286aae..a78ee9409 100644 --- a/lib/Doctrine/AuditLog.php +++ b/lib/Doctrine/AuditLog.php @@ -147,7 +147,7 @@ class Doctrine_AuditLog return $q->from($className) ->where($where) - ->execute($values, Doctrine::FETCH_ARRAY); + ->execute($values, Doctrine_HYDRATE::HYDRATE_ARRAY); } public function createVersionTable() { diff --git a/lib/Doctrine/Configurable.php b/lib/Doctrine/Configurable.php index 8c93e0fc3..ee729c277 100644 --- a/lib/Doctrine/Configurable.php +++ b/lib/Doctrine/Configurable.php @@ -192,7 +192,7 @@ abstract class Doctrine_Configurable extends Doctrine_Object public function addRecordListener($listener, $name = null) { if ( ! isset($this->attributes[Doctrine::ATTR_RECORD_LISTENER]) || - ! ($this->attributes[Doctrine::ATTR_LISTENER] instanceof Doctrine_Record_Listener_Chain)) { + ! ($this->attributes[Doctrine::ATTR_RECORD_LISTENER] instanceof Doctrine_Record_Listener_Chain)) { $this->attributes[Doctrine::ATTR_RECORD_LISTENER] = new Doctrine_Record_Listener_Chain(); }