Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function createQueryBuilder($alias, $indexBy = null, ?SaasClientInterface $client = null) |
||
28 | { |
||
29 | if (null == $client) { |
||
30 | $client = $this->clientService->getCurrentClient(); |
||
31 | } |
||
32 | |||
33 | return parent::createQueryBuilder($alias, $indexBy) |
||
34 | ->andWhere($alias . '.client = :saasClientId') |
||
35 | ->setParameter('saasClientId', $client->getId()); |
||
36 | } |
||
38 |