title: Doctrine query - ignoring spaces
body: <p>I`m looking for a way to create a doctrine query with ignoring spaces.
  I try with replace but I receive all the time </p>
  
  <blockquote>
    <p>Expected known function, got 'replace'</p>
  </blockquote>
  
  <p>My query look like:</p>
  
  <pre><code>        $query = $em-&gt;createQueryBuilder();
  
          $query-&gt;select('c')
                  -&gt;from('ACME\UserBudnle\Entity\User', 'c')
                  -&gt;where('replace(c.username," ","")'.' LIKE :searchName')
                  -&gt;setParameter('searchName', '%@' . $searchName. '%')
                  -&gt;orderBy('c.username', 'asc');
  </code></pre>