src/EntityQueryBuilder.php
public function set($key, $value)
    {
        parent::set($this->alias($key), $value);

        return $this;
    }
public function set($key, $value)
    {
        parent::set($this->alias($key), $value);

        return $this;
    }
Sets a new value for a field in a bulk update query.

<code>
$qb = $em->createQueryBuilder()
->update('User', 'u')
->set('u.password', md5('password'))
->where('u.id = ?');
</code>

@param string $key   The key/field to set.
@param string $value The value, expression, placeholder, etc.

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