src/EntityQueryBuilder.php
public function update($update = null, $alias = null)
    {
        if ($update === null) {
            $update = $this->getEntityClassName();

            if ($alias === null) {
                $alias = $this->getEntityAlias();
            }
        }

        parent::update($update, $alias);

        return $this;
    }
public function update($update = null, $alias = null)
    {
        if ($update === null) {
            $update = $this->getEntityClassName();

            if ($alias === null) {
                $alias = $this->getEntityAlias();
            }
        }

        parent::update($update, $alias);

        return $this;
    }
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>

@param string $update The class/type whose instances are subject to the update.
@param string $alias  The class/type alias used in the constructed query.

@return $this This QueryBuilder instance.
@throws \ReflectionException