| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function getWorkcentersByEducationTutor(User $user) |
||
| 25 | { |
||
| 26 | $em = $this->getEntityManager(); |
||
| 27 | |||
| 28 | return $em->createQuery('SELECT DISTINCT w |
||
| 29 | FROM AppBundle:Workcenter w JOIN AppBundle:Agreement a WITH a.workcenter = w JOIN AppBundle:Company c WHERE a.educationalTutor = :user ORDER BY c.name, w.name') |
||
| 30 | ->setParameter('user', $user) |
||
| 31 | ->getResult(); |
||
| 32 | } |
||
| 33 | } |
||
| 34 |