public function Delete::execute
public Delete::execute()
Executes the DELETE query.
Return value
int The number of rows affected by the delete query.
Overrides Query::execute
File
- core/lib/Drupal/Core/Database/Query/Delete.php, line 48
Class
- Delete
- General class for an abstracted DELETE operation.
Namespace
Drupal\Core\Database\QueryCode
public function execute() { $values = array(); if (count($this->condition)) { $this->condition->compile($this->connection, $this); $values = $this->condition->arguments(); } return $this->connection->query((string) $this, $values, $this->queryOptions); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Database!Query!Delete.php/function/Delete::execute/8.1.x