vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php line 21

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Doctrine\ORM\Query\Exec;
  4. use Doctrine\DBAL\Connection;
  5. use Doctrine\DBAL\Result;
  6. use Doctrine\ORM\Query\AST\SelectStatement;
  7. use Doctrine\ORM\Query\SqlWalker;
  8. /**
  9.  * Executor that executes the SQL statement for simple DQL SELECT statements.
  10.  *
  11.  * @link        www.doctrine-project.org
  12.  */
  13. class SingleSelectExecutor extends AbstractSqlExecutor
  14. {
  15.     public function __construct(SelectStatement $ASTSqlWalker $sqlWalker)
  16.     {
  17.         $this->_sqlStatements $sqlWalker->walkSelectStatement($AST);
  18.     }
  19.     /**
  20.      * {@inheritDoc}
  21.      *
  22.      * @return Result
  23.      */
  24.     public function execute(Connection $conn, array $params, array $types)
  25.     {
  26.         return $conn->executeQuery($this->_sqlStatements$params$types$this->queryCacheProfile);
  27.     }
  28. }