Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | public function testIssue(): void |
||
34 | { |
||
35 | $qb = $this->em->createQueryBuilder(); |
||
36 | |||
37 | $qb->from(GH7804Entity::class, 'te1') |
||
38 | ->select( |
||
39 | sprintf('new %s(te1.title as t)', GH7804Dto::class) |
||
40 | ) |
||
41 | ->addGroupBy('t'); |
||
42 | |||
43 | self::assertSQLEquals( |
||
44 | 'select t0."title" as c0 from "te1" t0 group by t0."title"', |
||
45 | $qb->getQuery()->getSQL() |
||
46 | ); |
||
89 |