| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | 1 | public function findActivitySectorBySector($sector) |
|
| 10 | { |
||
| 11 | $dql = 'SELECT sub.name |
||
| 12 | FROM Api\Entity\Subactivity sub |
||
| 13 | INNER JOIN sub.activity a |
||
| 14 | INNER JOIN Api\Entity\Sector s WITH s.id = a.sector |
||
| 15 | WHERE s.id = :sector |
||
| 16 | 1 | ORDER BY sub.name'; |
|
| 17 | |||
| 18 | 1 | return $this->getEntityManager()->createQuery($dql) |
|
| 19 | 1 | ->setParameter('sector', $sector) |
|
| 20 | 1 | ->getResult(); |
|
| 21 | } |
||
| 22 | } |
||
| 23 |