diff --git a/tests/Type/Doctrine/data/QueryResult/queryBuilderGetQuery.php b/tests/Type/Doctrine/data/QueryResult/queryBuilderGetQuery.php index c0cf3068..097fd600 100644 --- a/tests/Type/Doctrine/data/QueryResult/queryBuilderGetQuery.php +++ b/tests/Type/Doctrine/data/QueryResult/queryBuilderGetQuery.php @@ -50,6 +50,16 @@ public function testQueryTypeParametersAreInfered(EntityManagerInterface $em): v assertType('Doctrine\ORM\Query', $query); } + public function testEventAlias(EntityManagerInterface $em): void + { + $query = $em->createQueryBuilder() + ->select('event') + ->from(Many::class, 'event') + ->getQuery(); + + assertType('Doctrine\ORM\Query', $query); + } + public function testIndexByInfering(EntityManagerInterface $em): void { $query = $em->createQueryBuilder()