Doctrine\DBAL\Connection::executeUpdate
Executes an SQL INSERT/UPDATE/DELETE query with the given parameters and returns the number of affected rows.
This method supports PDO binding types as well as DBAL mapping types.
Signature
public function executeUpdate(string
$query,
array
$params,
array
$types )
Parameters
$query
— string- The SQL query.
$params
— array- The query parameters.
$types
— array- The parameter types.
Returns
- integer
- The number of affected rows.