. */ namespace Doctrine\ORM\Query\Exec; /** * Executor that executes the SQL statement for simple DQL SELECT statements. * * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @author Roman Borschel * @version $Revision$ * @link www.doctrine-project.org * @since 2.0 */ class SingleSelectExecutor extends AbstractExecutor { public function __construct(\Doctrine\ORM\Query\AST\SelectStatement $AST, $sqlWalker) { parent::__construct($AST, $sqlWalker); $this->_sqlStatements = $sqlWalker->walkSelectStatement($AST); } public function execute(\Doctrine\DBAL\Connection $conn, array $params) { return $conn->execute($this->_sqlStatements, $params); } }