| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function testIssue() : void |
||
| 30 | { |
||
| 31 | $user = new GH8106User(); |
||
| 32 | $this->em->persist($user); |
||
| 33 | $this->em->flush(); |
||
| 34 | $this->em->clear(); |
||
| 35 | |||
| 36 | $qb = $this->em->createQueryBuilder(); |
||
| 37 | $qb |
||
| 38 | ->select('u') |
||
| 39 | ->from(GH8106User::class, 'u') |
||
| 40 | ->where('u.id = :id') |
||
| 41 | ->setParameter(':id', 1) |
||
| 42 | ->setParameter(':id', 1); |
||
| 43 | |||
| 44 | $result = $qb->getQuery()->getResult(); // should not throw QueryException |
||
| 45 | |||
| 46 | self::assertCount(1, $result); |
||
| 47 | } |
||
| 56 |