opened
Koc
username_0
```php
class AnnouncementRepository extends EntityRepository
{
    public function getEmailAnnouncement()
    {
        $announcements = $this->createQueryBuilder('a') // looks like this alias does not handled by plugin
            ->join('a.zone', 'az')
            ->addSelect('az')
            ->andWhere('a.isPayed = true') // also I cann't ctrl+click to this field of entity
            ->andWhere(':now BETWEEN a.startsAt AND a.endsAt')
            ->andWhere('az.sectionId = :section_id')
            ->setParameter('now', new \DateTime())
            ->setParameter('section_id', SectionProvider::TYPE_EMAIL)
            ->getQuery()
            ->getResult();

        foreach ($announcements as $announcement) {
            $announcement->getZone()->getSlug(); // $announcement does not associates with class
        }
}

```
EntityRepository::createQueryBuilder does not resolve entity type properly
issue
created
Koc
username_0
@username_1 can you look at this issue?
comment
created
Koc
username_0
still reproducible :(
comment
created
Haehnchen
username_1
still not implemented but looks easier now.
comment