Doctrine\DBAL\Query\QueryBuilder::update
Turns the query being built into a bulk update query that ranges over a certain table
<code> $qb = $conn->createQueryBuilder() ->update('users', 'u') ->set('u.password', md5('password')) ->where('u.id = ?'); </code>
Signature
public function update([string
$update = null,
[string
$alias = null]] )
Parameters
$update
— string- The table whose rows are subject to the update.
$alias
— string- The table alias used in the constructed query.
Returns
- QueryBuilder
- This QueryBuilder instance.