| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function testIssue() |
||
| 31 | { |
||
| 32 | $user = new DDC2780User; |
||
| 33 | $project = new DDC2780Project; |
||
| 34 | |||
| 35 | $user->project = $project; |
||
| 36 | |||
| 37 | $this->_em->persist($project); |
||
| 38 | $this->_em->persist($user); |
||
| 39 | $this->_em->flush(); |
||
| 40 | $this->_em->clear(); |
||
| 41 | |||
| 42 | $result = $this->_em->createQueryBuilder() |
||
| 43 | ->select('user') |
||
| 44 | ->from(DDC2780User::class, 'user') |
||
| 45 | ->leftJoin('user.project', 'project') |
||
| 46 | ->where('project IS NOT NULL') |
||
| 47 | ->getQuery() |
||
| 48 | ->getOneOrNullResult(); |
||
| 49 | |||
| 50 | $this->assertInstanceOf(DDC2780User::class, $result); |
||
| 51 | } |
||
| 52 | } |
||
| 90 |