From 2390515f54dc52dfe7954505a99a03bbcc4cb9a9 Mon Sep 17 00:00:00 2001 From: tof <> Date: Tue, 26 Feb 2008 15:16:47 +0000 Subject: Fixed TMappedStatement to make it work with recent ActiveRecords changes --- framework/Data/SqlMap/Statements/TMappedStatement.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/framework/Data/SqlMap/Statements/TMappedStatement.php b/framework/Data/SqlMap/Statements/TMappedStatement.php index 3b935e7f..c100e386 100644 --- a/framework/Data/SqlMap/Statements/TMappedStatement.php +++ b/framework/Data/SqlMap/Statements/TMappedStatement.php @@ -560,8 +560,7 @@ 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) - TActiveRecordManager::getInstance()->getObjectStateRegistry()->registerClean($obj); + return $obj; } -- cgit v1.2.3