From 4d02feae9d948b28ec24df42ebf498ec24beaae5 Mon Sep 17 00:00:00 2001 From: javalizard <> Date: Sun, 18 Apr 2010 04:37:36 +0000 Subject: Ensured parent::__construct calls within Testing --- framework/Testing/Data/ActiveRecord/TActiveFinder.php | 1 + framework/Testing/Data/ActiveRecord/TActiveRecord.php | 3 ++- framework/Testing/Data/ActiveRecord/TActiveRecordCriteria.php | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) (limited to 'framework/Testing/Data/ActiveRecord') diff --git a/framework/Testing/Data/ActiveRecord/TActiveFinder.php b/framework/Testing/Data/ActiveRecord/TActiveFinder.php index d1c35bdf..75787e77 100644 --- a/framework/Testing/Data/ActiveRecord/TActiveFinder.php +++ b/framework/Testing/Data/ActiveRecord/TActiveFinder.php @@ -47,6 +47,7 @@ class TActiveFinder extends TComponent */ public function __construct($model,$with,$criteria=null) { + parent::__construct(); $this->_criteria=$criteria; $this->_builder=$model->getCommandBuilder(); $this->_joinTree=new TJoinElement($this,$model); diff --git a/framework/Testing/Data/ActiveRecord/TActiveRecord.php b/framework/Testing/Data/ActiveRecord/TActiveRecord.php index 8d6c5e10..e1484f03 100644 --- a/framework/Testing/Data/ActiveRecord/TActiveRecord.php +++ b/framework/Testing/Data/ActiveRecord/TActiveRecord.php @@ -68,7 +68,8 @@ abstract class TActiveRecord extends TModel { if($scenario===null) // internally used by populateRecord() and model() return; - + + parent::__construct(); $this->setScenario($scenario); $this->setIsNewRecord(true); $this->_attributes=$this->getMetaData()->attributeDefaults; diff --git a/framework/Testing/Data/ActiveRecord/TActiveRecordCriteria.php b/framework/Testing/Data/ActiveRecord/TActiveRecordCriteria.php index 46eddaf9..2a00cbda 100644 --- a/framework/Testing/Data/ActiveRecord/TActiveRecordCriteria.php +++ b/framework/Testing/Data/ActiveRecord/TActiveRecordCriteria.php @@ -16,6 +16,7 @@ class TSqlCriteria extends TDbCriteria public function __construct($condition=null, $parameters=array()) { + parent::__construct(); if(!is_array($parameters) && func_num_args() > 1) $parameters = array_slice(func_get_args(), 1); -- cgit v1.2.3