Commit d8082d3d authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

fix du service

parent 450307f7
Loading
Loading
Loading
Loading
+2 −2
Changes for module/Application/src/Application/Service/Agent/AgentService.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -157,10 +157,10 @@ class AgentService {
        /** !!TODO!! faire le lien entre agent et fiche de poste */
        $qb = $this->getEntityManager()->getRepository(Agent::class)->createQueryBuilder('agent')
            ->addSelect('statut')->join('agent.statuts', 'statut')
//            ->addSelect('fiche')->leftJoin('agent.fiche', 'fiche', 'WITH', 'fiche.agent = agent.id')
            ->addSelect('fiche')->leftJoin('agent.fiche', 'fiche', 'WITH', 'fiche.agent = agent.id')
            ->andWhere('statut.fin >= :today OR statut.fin = :noEnd')
            ->andWhere('statut.administratif = :true')
//            ->andWhere('fiche.id IS NULL')
            ->andWhere('fiche.id IS NULL')
            ->setParameter('today', $today)
            ->setParameter('noEnd', $noEnd)
            ->setParameter('true', 'O')