From c7d41e5bea4a5f96979a08da9cc9f79355edfe70 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sun, 16 Jul 2006 06:19:36 +0000 Subject: Update Time Tracker demo. --- framework/DataAccess/SQLMap/Configuration/TSqlMapStatement.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/DataAccess/SQLMap/Configuration/TSqlMapStatement.php') diff --git a/framework/DataAccess/SQLMap/Configuration/TSqlMapStatement.php b/framework/DataAccess/SQLMap/Configuration/TSqlMapStatement.php index 228b37d6..414ad2f1 100644 --- a/framework/DataAccess/SQLMap/Configuration/TSqlMapStatement.php +++ b/framework/DataAccess/SQLMap/Configuration/TSqlMapStatement.php @@ -79,14 +79,14 @@ class TSqlMapStatement extends TComponent return array(); //new TList; } - protected function createInstanceOf($type) + protected function createInstanceOf($type,$row=null) { $handler = $this->_typeHandler->getTypeHandler($type); try { if(!is_null($handler)) - return $handler->createNewInstance(); + return $handler->createNewInstance($row); else return TTypeHandlerFactory::createInstanceOf($type); } @@ -99,10 +99,10 @@ class TSqlMapStatement extends TComponent } - public function createInstanceOfResultClass() + public function createInstanceOfResultClass($row) { if(strlen($type= $this->getResultClass()) > 0) - return $this->createInstanceOf($type); + return $this->createInstanceOf($type,$row); } } -- cgit v1.2.3