title: Using wildcards with Doctrine's createQuery method
body: <p>Can anyone enlighten me as to why this query isn't working please? I tried alternating between single and double quotes as well.</p>
  
  <pre><code>$em = $this-&gt;getDoctrine()-&gt;getManager();
  
  $query = $em-&gt;createQuery('SELECT t FROM AcmeBlogBundle:BlogTag t WHERE t.title LIKE \'%:title%\'')
  -&gt;setParameter('title', $keyword);
  </code></pre>
  
  <p>Doctrine simply returns <code>Invalid parameter number: number of bound variables does not match number of tokens</code>.</p>
  
  <p>Also, is it better to perform such a query using the createQuery method or createQueryBuilder?</p>