title: Two joins and a where - Doctrine2
body: <p>I have the following query in Doctrine2. </p>
  
  <pre><code>$dql-&gt;select('um', 'u', 'r')
                      -&gt;from('AcmeComBundle:UserMenu', 'um')
                      -&gt;join('um.user', 'u')
                      -&gt;join('u.role', 'r')
                      -&gt;where('u.ced = '.$ced);
  </code></pre>
  
  <p>Always got problems referring to:</p>
  
  <pre><code>[Semantical Error] line 0, col 116 near 'XXXXX': Error: 'XXXXX' is not defined.
  </code></pre>
  
  <p>The <code>XXXXX</code> is from <code>$ced</code>. </p>
  
  <p>Any idea?</p>