summaryrefslogtreecommitdiff
path: root/framework/Testing/Data/ActiveRecord/TActiveRecord.php
diff options
context:
space:
mode:
authorjavalizard <>2010-04-18 04:37:36 +0000
committerjavalizard <>2010-04-18 04:37:36 +0000
commit4d02feae9d948b28ec24df42ebf498ec24beaae5 (patch)
tree4c492cb4ef2b13f1dc34fc376fc468614b51f0e2 /framework/Testing/Data/ActiveRecord/TActiveRecord.php
parent2157ae5323261476ffc67c41e58455feaf6bbecc (diff)
Ensured parent::__construct calls within Testing
Diffstat (limited to 'framework/Testing/Data/ActiveRecord/TActiveRecord.php')
-rw-r--r--framework/Testing/Data/ActiveRecord/TActiveRecord.php3
1 files changed, 2 insertions, 1 deletions
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;