diff options
author | tof <> | 2008-02-26 16:58:20 +0000 |
---|---|---|
committer | tof <> | 2008-02-26 16:58:20 +0000 |
commit | 1a19963908e6c2621af9004ed521978e67c0ae22 (patch) | |
tree | cfabd21901c6d71dc4ec2f5c3c3f01268d95d6ea /framework/Data | |
parent | 2390515f54dc52dfe7954505a99a03bbcc4cb9a9 (diff) |
Previous change won't work
Diffstat (limited to 'framework/Data')
-rw-r--r-- | framework/Data/SqlMap/Statements/TMappedStatement.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/Data/SqlMap/Statements/TMappedStatement.php b/framework/Data/SqlMap/Statements/TMappedStatement.php index c100e386..e76a37df 100644 --- a/framework/Data/SqlMap/Statements/TMappedStatement.php +++ b/framework/Data/SqlMap/Statements/TMappedStatement.php @@ -560,7 +560,9 @@ class TMappedStatement extends TComponent implements IMappedStatement $obj = $this->fillResultClass($resultClass, $row, $resultObject);
else
$obj = $this->fillDefaultResultMap(null, $row, $resultObject);
-
+ if(class_exists('TActiveRecord',false) && $obj instanceof TActiveRecord)
+ //Create a new clean active record. + $obj=TActiveRecord::createRecord(get_class($obj),$obj);
return $obj;
}
|