title: Query-builder in Symfony2, known function Month error
body: <p>I have a problem with Symfony2 QueryBuilder.</p>
  
  <p>I have the following code which throws an error</p>
  
  <pre><code>$repositorio= $em-&gt;getRepository('SingUserBundle:Data');
  $consulta= $repositorio-&gt;createQueryBuilder('d')
      -&gt;where('d.usuario = :usuario')
      -&gt;andWhere ('MONTH(d.fecha) = :mesActual')
      -&gt;setParameter('usuario', $usuario-&gt;getId())
      -&gt;setParameter('mesActual', $mesActual)
      -&gt;getQuery();
  $totaldatos= $consulta-&gt;getSingleResult();
  </code></pre>
  
  <p>The error is:</p>
  
  <pre><code>[Syntax Error] line 0, col 80: Error: Expected known function, got 'MONTH'
  </code></pre>