. */ /** * 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 Doctrine_ORM_Query_SqlExecutor_SingleTableDeleteUpdate 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_Connection $conn, array $params) { return $conn->exec($this->_sqlStatements, $params); } }