From 5230f8f8a86fc1ae5d90f8c74ae65c93e197502b Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Thu, 22 Jan 2015 09:14:12 +0100 Subject: Apply namespaces to class inheritances (pt1) --- framework/Data/SqlMap/Statements/TMappedStatement.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'framework/Data/SqlMap/Statements/TMappedStatement.php') diff --git a/framework/Data/SqlMap/Statements/TMappedStatement.php b/framework/Data/SqlMap/Statements/TMappedStatement.php index db83f755..2f7e8619 100644 --- a/framework/Data/SqlMap/Statements/TMappedStatement.php +++ b/framework/Data/SqlMap/Statements/TMappedStatement.php @@ -21,7 +21,7 @@ namespace Prado\Data\SqlMap\Statements; * @package Prado\Data\SqlMap\Statements * @since 3.0 */ -class TMappedStatement extends TComponent implements IMappedStatement +class TMappedStatement extends \Prado\TComponent implements IMappedStatement { /** * @var TSqlMapStatement current SQL statement. @@ -226,7 +226,7 @@ class TMappedStatement extends TComponent implements IMappedStatement public function runQueryForList($connection, $parameter, $sql, $result, $delegate=null) { $registry=$this->getManager()->getTypeHandlers(); - $list = $result instanceof ArrayAccess ? $result : + $list = $result instanceof \ArrayAccess ? $result : $this->_statement->createInstanceOfListClass($registry); $connection->setActive(true); $reader = $sql->query(); @@ -581,7 +581,7 @@ class TMappedStatement extends TComponent implements IMappedStatement $resultObject = $this->_statement->createInstanceOfResultClass($registry,$row); } - if($resultObject instanceOf ArrayAccess) + if($resultObject instanceOf \ArrayAccess) return $this->fillResultArrayList($row, $resultObject); else if(is_object($resultObject)) return $this->fillResultObjectProperty($row, $resultObject); -- cgit v1.2.3