summaryrefslogtreecommitdiff
path: root/framework/Data/SqlMap
diff options
context:
space:
mode:
authortof <>2008-02-26 16:58:20 +0000
committertof <>2008-02-26 16:58:20 +0000
commit1a19963908e6c2621af9004ed521978e67c0ae22 (patch)
treecfabd21901c6d71dc4ec2f5c3c3f01268d95d6ea /framework/Data/SqlMap
parent2390515f54dc52dfe7954505a99a03bbcc4cb9a9 (diff)
Previous change won't work
Diffstat (limited to 'framework/Data/SqlMap')
-rw-r--r--framework/Data/SqlMap/Statements/TMappedStatement.php4
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;
}