| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function getAttributesForServiceProvider($entityId) { |
||
| 24 | $queryBuilder = $this->em |
||
| 25 | ->createQueryBuilder() |
||
| 26 | ->select(['a', 's']) |
||
| 27 | ->from(ServiceAttribute::class, 'a') |
||
| 28 | ->leftJoin('a.services', 's') |
||
| 29 | ->where('s.entityId = :entityId') |
||
| 30 | ->setParameter('entityId', $entityId); |
||
| 31 | |||
| 32 | return $queryBuilder->getQuery()->getResult(); |
||
| 33 | } |
||
| 53 | } |