From 85e24e92411778ea3ba08443ea378d88f7f14083 Mon Sep 17 00:00:00 2001 From: Jan Nedbal Date: Thu, 12 Sep 2024 16:33:06 +0200 Subject: [PATCH] Failing test for event alias inferred as mixed --- .../Doctrine/data/QueryResult/queryBuilderGetQuery.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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()