Skip to content

Commit 85e24e9

Browse files
committed
Failing test for event alias inferred as mixed
1 parent 0d88669 commit 85e24e9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/Type/Doctrine/data/QueryResult/queryBuilderGetQuery.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@ public function testQueryTypeParametersAreInfered(EntityManagerInterface $em): v
5050
assertType('Doctrine\ORM\Query<null, array{intColumn: int, stringNullColumn: string|null}>', $query);
5151
}
5252

53+
public function testEventAlias(EntityManagerInterface $em): void
54+
{
55+
$query = $em->createQueryBuilder()
56+
->select('event')
57+
->from(Many::class, 'event')
58+
->getQuery();
59+
60+
assertType('Doctrine\ORM\Query<null, QueryResult\Entities\Many>', $query);
61+
}
62+
5363
public function testIndexByInfering(EntityManagerInterface $em): void
5464
{
5565
$query = $em->createQueryBuilder()

0 commit comments

Comments
 (0)