Commit 931bc8de authored by pookey's avatar pookey

* Correction to Record Event Chain stuff

  * Updating AuditLog to new way of doing array hydration
parent d434174a
...@@ -147,7 +147,7 @@ class Doctrine_AuditLog ...@@ -147,7 +147,7 @@ class Doctrine_AuditLog
return $q->from($className) return $q->from($className)
->where($where) ->where($where)
->execute($values, Doctrine::FETCH_ARRAY); ->execute($values, Doctrine_HYDRATE::HYDRATE_ARRAY);
} }
public function createVersionTable() public function createVersionTable()
{ {
......
...@@ -192,7 +192,7 @@ abstract class Doctrine_Configurable extends Doctrine_Object ...@@ -192,7 +192,7 @@ abstract class Doctrine_Configurable extends Doctrine_Object
public function addRecordListener($listener, $name = null) public function addRecordListener($listener, $name = null)
{ {
if ( ! isset($this->attributes[Doctrine::ATTR_RECORD_LISTENER]) || 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(); $this->attributes[Doctrine::ATTR_RECORD_LISTENER] = new Doctrine_Record_Listener_Chain();
} }
......
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