Loading src/UnicaenEtat/Service/EtatType/EtatTypeService.php +11 −3 Changes for src/UnicaenEtat/Service/EtatType/EtatTypeService.php: 11 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -158,11 +158,19 @@ class EtatTypeService { public function getEtatsTypesByCategorieCode(string $code) : array { $qb = $this->createQueryBuilder() ->andWhere('categorie.code = :code') ->andWhere('ecategorie.code = :code') ->setParameter('code', $code) ->orderBy('categorie.ordre, etype.ordre', 'ASC') ->orderBy('ecategorie.ordre, etype.ordre', 'ASC') ; return $qb->getQuery()->getResult(); /** @var EtatType[] $temp */ $temp = $qb->getQuery()->getResult(); $array = []; foreach ($temp as $etattype) { $array[$etattype->getCode()] = $etattype; } return $array; } /** Loading Loading
src/UnicaenEtat/Service/EtatType/EtatTypeService.php +11 −3 Changes for src/UnicaenEtat/Service/EtatType/EtatTypeService.php: 11 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -158,11 +158,19 @@ class EtatTypeService { public function getEtatsTypesByCategorieCode(string $code) : array { $qb = $this->createQueryBuilder() ->andWhere('categorie.code = :code') ->andWhere('ecategorie.code = :code') ->setParameter('code', $code) ->orderBy('categorie.ordre, etype.ordre', 'ASC') ->orderBy('ecategorie.ordre, etype.ordre', 'ASC') ; return $qb->getQuery()->getResult(); /** @var EtatType[] $temp */ $temp = $qb->getQuery()->getResult(); $array = []; foreach ($temp as $etattype) { $array[$etattype->getCode()] = $etattype; } return $array; } /** Loading