Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
45 | 2 | public function retrieveOnApplicationByUsernameQueryBuilder(ApplicationInterface $application, $username) |
|
46 | { |
||
47 | 2 | return $this->accountRepository |
|
48 | 2 | ->createQueryBuilder('ac') |
|
49 | 2 | ->innerJoin('ac.applications', 'app') |
|
50 | 2 | ->where('ac.username = :username') |
|
51 | 2 | ->setParameter('username', $username) |
|
52 | 2 | ->andWhere('app.id = :application') |
|
53 | 2 | ->setParameter('application', $application->getId()); |
|
54 | } |
||
55 | } |
||
56 |