summaryrefslogtreecommitdiff
path: root/framework/Testing/Data/ActiveRecord/TActiveRecord.php
diff options
context:
space:
mode:
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;