title: How to access create query method in symfony repository
body: <p>I have the class user repository</p>
  
  <pre><code>class userRepository extends EntityRepository
  {
  
      function getuserData($id)
      {
          $query = $this-&gt;createQuery('
                  SELECT c FROM AcmeBundle:User c 
                  WHERE c.id = :id ORDER BY c.id ASC
              ')
              -&gt;setParameter('id', $id);
  
          return $query-&gt;getResult();
      }
  }
  </code></pre>
  
  <p>I am getting this error</p>
  
  <blockquote>
    <p>Undefined method 'createQuery'. The method name must start with either
    findBy or findOneBy!</p>
  </blockquote>