title: Symfony2 how to get entity alias in repository
body: <p>i would like to write some DQL query in my entity repository function but instead of haroding entity alias into DQL i would like to get actual entity alias from repository.
  my repository:</p>
  
  <pre><code>/**
   * TrackingRepository
   *
   * This class was generated by the Doctrine ORM. Add your own custom
   * repository methods below.
   */
  class TrackingRepository extends EntityRepository
  {
      public function test()
      {
          $dql = 'SELECT * FROM MyBundle:Tracking';
          // i would like to call something like this:
          // $dql = 'SELECT * FROM ' . $this-&gt;getEntityAlias;
          $query = $this-&gt;getEntityManager()-&gt;createQuery($dql);
          ...
      }
  }
  </code></pre>
  
  <p>is this somehow possible?</p>