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

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.         parent::__construct();
  18.         $this->sqlStatements $sqlWalker->walkSelectStatement($AST);
  19.     }
  20.     /**
  21.      * {@inheritDoc}
  22.      *
  23.      * @return Result
  24.      */
  25.     public function execute(Connection $conn, array $params, array $types)
  26.     {
  27.         return $conn->executeQuery($this->sqlStatements$params$types$this->queryCacheProfile);
  28.     }
  29. }