Commit 68c10ec4 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

SUppression méthodes inutilisées

parent ca93752a
Loading
Loading
Loading
Loading
Loading
+0 −61
Changes for module/Application/src/Application/Service/Individu/IndividuService.php: 0 added lines, 61 removed lines.
Original line number Diff line number Diff line
@@ -2,15 +2,10 @@

namespace Application\Service\Individu;

use Application\Entity\Db\Acteur;
use Application\Entity\Db\Doctorant;
use Application\Entity\Db\Etablissement;
use Application\Entity\Db\Individu;
use Application\Entity\Db\IndividuRole;
use Application\Entity\Db\Repository\IndividuRepository;
use Application\Entity\Db\Role;
use Application\Entity\Db\SourceInterface;
use Application\Entity\Db\These;
use Application\Entity\Db\Utilisateur;
use Application\Entity\UserWrapper;
use Application\Service\BaseService;
@@ -122,60 +117,4 @@ class IndividuService extends BaseService

        return ($exist_individu !== null || $exist_utilisateur !== null);
    }

    public function getActeurSansMail()
    {
        $qb = $this->getEntityManager()->getRepository(Acteur::class)->createQueryBuilder("acteur")
            ->addSelect("these")
            ->addSelect("individu")
            ->addSelect("etablissement")
            ->addSelect("ecoleDoctorale")
            ->addSelect("uniteRecherche")
            ->addSelect("structure_etab")
            ->addSelect("structure_ed")
            ->addSelect("structure_ur")
            ->leftJoin("acteur.individu", "individu")
            ->leftJoin("acteur.these", "these")
            ->leftJoin("these.etablissement", "etablissement")
            ->leftJoin("etablissement.structure", "structure_etab")
            ->leftJoin("these.ecoleDoctorale", "ecoleDoctorale")
            ->leftJoin("ecoleDoctorale.structure", "structure_ed")
            ->leftJoin("these.uniteRecherche", "uniteRecherche")
            ->leftJoin("uniteRecherche.structure", "structure_ur")
            ->andWhere("individu.email is NULL")
            ->andWhere("these.etatThese = 'E'")
            ->orderBy("these.sourceCode")
            ;

        $result = $qb->getQuery()->getResult();
        return $result;
    }

    public function getDoctorantSansMail()
    {
        $qb = $this->getEntityManager()->getRepository(These::class)->createQueryBuilder("these")
            ->addSelect("doctorant")
            ->addSelect("individu")
            ->leftJoin("these.doctorant", "doctorant")
            ->leftJoin("doctorant.individu", "individu")
            ->addSelect("etablissement")
            ->addSelect("ecoleDoctorale")
            ->addSelect("uniteRecherche")
            ->addSelect("structure_etab")
            ->addSelect("structure_ed")
            ->addSelect("structure_ur")
            ->leftJoin("these.etablissement", "etablissement")
            ->leftJoin("etablissement.structure", "structure_etab")
            ->leftJoin("these.ecoleDoctorale", "ecoleDoctorale")
            ->leftJoin("ecoleDoctorale.structure", "structure_ed")
            ->leftJoin("these.uniteRecherche", "uniteRecherche")
            ->leftJoin("uniteRecherche.structure", "structure_ur")
            ->andWhere("individu.email is NULL")
            ->andWhere("these.etatThese = 'E'")
            ->orderBy("these.sourceCode")
        ;

        $result = $qb->getQuery()->getResult();
        return $result;
    }
}
 No newline at end of file