Loading module/Application/src/Application/Service/Agent/AgentService.php +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 Loading @@ -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') Loading Loading
module/Application/src/Application/Service/Agent/AgentService.php +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 Loading @@ -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') Loading