Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function findAllByFactoryNameAndCode(string $code): array |
||
20 | { |
||
21 | return $this->createQueryBuilder('o') |
||
22 | ->innerJoin('o.gatewayConfig', 'gatewayConfig') |
||
23 | ->where('gatewayConfig.factoryName = :factoryName') |
||
24 | ->andWhere('o.code != :code') |
||
25 | ->setParameter('factoryName', MollieGatewayFactory::FACTORY_NAME) |
||
26 | ->setParameter('code', $code) |
||
27 | ->getQuery() |
||
28 | ->getResult() |
||
29 | ; |
||
32 |