title: I am getting this error [Semantical Error] line 0, col 73 near 'classes LIKE': Error: Invalid PathExpression. Must be a StateFieldPathExpression
body: <p>The following is a code where p.classes is foreign key. When the query will fire then its shows error like this : </p>
  
  <blockquote>
    <p>Semantical Error] line 0, col 73 near 'classes LIKE': Error: Invalid
    PathExpression. Must be a StateFieldPathExpression.</p>
  </blockquote>
  
  <pre><code> $query = $this-&gt;getEntityManager()
      -&gt;createQuery('SELECT p FROM StudentBundle:Student  p WHERE p.classes  LIKE :name')
      -&gt;setParameter('name','%'.$keyword.'%');
  </code></pre>
  
  <p>Kindly need solution on this.</p>