. */ /** * 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 Doctrine_ORM_Query_SqlExecutor_SingleSelect extends Doctrine_ORM_Query_SqlExecutor_Abstract { public function __construct(Doctrine_ORM_Query_AST $AST) { parent::__construct($AST); $this->_sqlStatements = $AST->buildSql(); } public function execute(Doctrine_DBAL_Connection $conn, array $params) { return $conn->execute($this->_sqlStatements, $params); } }