* Correction to Record Event Chain stuff
* Updating AuditLog to new way of doing array hydration
This commit is contained in:
parent
d434174a96
commit
931bc8de23
@ -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
|
|||||||
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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user