title: Doctrine 2: Update query with query builder
body: <p>Hi
  I've got the following query but it doesn't seem to work.</p>
  
  <pre><code>$q = $this-&gt;em-&gt;createQueryBuilder()
      -&gt;update('models\User', 'u')
      -&gt;set('u.username', $username)
      -&gt;set('u.email', $email)
      -&gt;where('u.id = ?1')
      -&gt;setParameter(1, $editId)
      -&gt;getQuery();
  $p = $q-&gt;execute();
  </code></pre>
  
  <p>This returns the following error message:</p>
  
  <blockquote>
    <p>Fatal error: Uncaught exception
    'Doctrine\ORM\Query\QueryException'
    with message '[Semantical Error] line
    0, col 38 near 'testusername WHERE':
    Error: 'testusername' is not defined.'
    in ...</p>
  </blockquote>
  
  <p>I would be glad of any help</p>