Loading module/Application/src/Application/Entity/Db/Repository/DoctorantRepository.php +3 −2 Changes for module/Application/src/Application/Entity/Db/Repository/DoctorantRepository.php: 3 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -20,8 +20,9 @@ class DoctorantRepository extends DefaultEntityRepository ->leftJoin('t.complements', 'c') ->andWhere('1 = pasHistorise(t)') // todo: ajouter le code étab au persopass enregistré dans la table DOCTORANT_COMPL ->andWhere('t.sourceCode = :login OR c.persopass = :login') ->setParameter('login', $etablissement . '::' . $username); ->andWhere('t.sourceCode = :sourceCode OR c.persopass = :persopass') ->setParameter('sourceCode', $etablissement . '::' . $username) ->setParameter('persopass', $username); return $qb->getQuery()->getOneOrNullResult(); } Loading module/Application/src/Application/Entity/Db/Repository/RoleRepository.php +3 −2 Changes for module/Application/src/Application/Entity/Db/Repository/RoleRepository.php: 3 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -22,8 +22,9 @@ class RoleRepository extends DefaultEntityRepository $qb = $this->createQueryBuilder('r'); $qb ->addSelect('e') ->join('r.etablissement', 'e', Join::WITH, 'e.code = :etablissement') ->addSelect('s, e') ->join('r.structure', 's') ->join('s.etablissement', 'e', Join::WITH, 'e.code = :etablissement') ->where('r.code = :code') ->setParameter('code', Role::CODE_DOCTORANT) ->setParameter('etablissement', $etablissement); Loading Loading
module/Application/src/Application/Entity/Db/Repository/DoctorantRepository.php +3 −2 Changes for module/Application/src/Application/Entity/Db/Repository/DoctorantRepository.php: 3 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -20,8 +20,9 @@ class DoctorantRepository extends DefaultEntityRepository ->leftJoin('t.complements', 'c') ->andWhere('1 = pasHistorise(t)') // todo: ajouter le code étab au persopass enregistré dans la table DOCTORANT_COMPL ->andWhere('t.sourceCode = :login OR c.persopass = :login') ->setParameter('login', $etablissement . '::' . $username); ->andWhere('t.sourceCode = :sourceCode OR c.persopass = :persopass') ->setParameter('sourceCode', $etablissement . '::' . $username) ->setParameter('persopass', $username); return $qb->getQuery()->getOneOrNullResult(); } Loading
module/Application/src/Application/Entity/Db/Repository/RoleRepository.php +3 −2 Changes for module/Application/src/Application/Entity/Db/Repository/RoleRepository.php: 3 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -22,8 +22,9 @@ class RoleRepository extends DefaultEntityRepository $qb = $this->createQueryBuilder('r'); $qb ->addSelect('e') ->join('r.etablissement', 'e', Join::WITH, 'e.code = :etablissement') ->addSelect('s, e') ->join('r.structure', 's') ->join('s.etablissement', 'e', Join::WITH, 'e.code = :etablissement') ->where('r.code = :code') ->setParameter('code', Role::CODE_DOCTORANT) ->setParameter('etablissement', $etablissement); Loading