. */ namespace Doctrine\ORM\Query\Exec; /** * Executor that executes the SQL statements for DQL DELETE/UPDATE statements on classes * that are mapped to a single table. * * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @author Roman Borschel * @version $Revision$ * @link www.phpdoctrine.org * @since 2.0 * @todo This is exactly the same as SingleSelectExecutor. Unify in SingleStatementExecutor. */ class SingleTableDeleteUpdateExecutor extends AbstractExecutor { public function __construct(\Doctrine\ORM\Query\AST\Node $AST) { parent::__construct($AST); $this->_sqlStatements = $AST->buildSql(); } public function execute(\Doctrine\DBAL\Connection $conn, array $params) { return $conn->exec($this->_sqlStatements, $params); } }