title: Symfony2: update query with query builder
body: <p>This is my query</p>
  
  <p>$id contains primary key and $status contains new status</p>
  
  <pre><code>public function updateStatus($id,$status)
  {
      $qb=$this-&gt;createQueryBuilder('b')
               -&gt;update()
               -&gt;set('b.status',$status)
               -&gt;where('b.id='.$id);
      echo $qb;
      return $qb-&gt;getQuery()
                -&gt;getResult();
  }
  </code></pre>
  
  <p>Problem I am facing is</p>
  
  <pre><code>[Semantical Error] line 0, col 56 near 'Complete WHERE': Error: 'Complete' is not defined.
  </code></pre>