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