| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 32 | public function retrieveOnApplicationByUsername(ApplicationInterface $application, $username) |
||
| 33 | { |
||
| 34 | return $this->accountRepository |
||
| 35 | ->createQueryBuilder('ac') |
||
| 36 | ->innerJoin('ac.applications', 'app') |
||
| 37 | ->where('ac.username = :username') |
||
| 38 | ->setParameter('username', $username) |
||
| 39 | ->andWhere('app.id = :application') |
||
| 40 | ->setParameter('application', $application->getId()) |
||
| 41 | ->getQuery() |
||
| 42 | ->getOneOrNullResult() |
||
| 43 | ; |
||
| 44 | } |
||
| 45 | } |
||
| 46 |