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(); }