Loading module/Application/config/others/co-encadrant.config.php +7 −7 Original line number Diff line number Diff line Loading @@ -134,13 +134,13 @@ return [ 'resource' => PrivilegeController::getResourceId(CoEncadrantController::class, 'index'), 'order' => 300, 'pages' => [ 'historique' => [ 'label' => 'Historique', 'route' => 'co-encadrant/historique', 'resource' => PrivilegeController::getResourceId(CoEncadrantController::class, 'historique'), ], ], // 'pages' => [ // 'historique' => [ // 'label' => 'Historique', // 'route' => 'co-encadrant/historique', // 'resource' => PrivilegeController::getResourceId(CoEncadrantController::class, 'historique'), // ], // ], ], ], ], Loading module/Application/src/Application/Service/CoEncadrant/CoEncadrantService.php +5 −3 Original line number Diff line number Diff line Loading @@ -43,11 +43,13 @@ class CoEncadrantService { } /** * @param int $id * @return Acteur * @param int|null $id * @return Acteur|null */ public function getCoEncadrant(int $id) public function getCoEncadrant(?int $id) : ?Acteur { if ($id === null) return null; $qb = $this->createQueryBuilder() ->andWhere('acteur.id = :id') ->setParameter('id', $id) Loading Loading
module/Application/config/others/co-encadrant.config.php +7 −7 Original line number Diff line number Diff line Loading @@ -134,13 +134,13 @@ return [ 'resource' => PrivilegeController::getResourceId(CoEncadrantController::class, 'index'), 'order' => 300, 'pages' => [ 'historique' => [ 'label' => 'Historique', 'route' => 'co-encadrant/historique', 'resource' => PrivilegeController::getResourceId(CoEncadrantController::class, 'historique'), ], ], // 'pages' => [ // 'historique' => [ // 'label' => 'Historique', // 'route' => 'co-encadrant/historique', // 'resource' => PrivilegeController::getResourceId(CoEncadrantController::class, 'historique'), // ], // ], ], ], ], Loading
module/Application/src/Application/Service/CoEncadrant/CoEncadrantService.php +5 −3 Original line number Diff line number Diff line Loading @@ -43,11 +43,13 @@ class CoEncadrantService { } /** * @param int $id * @return Acteur * @param int|null $id * @return Acteur|null */ public function getCoEncadrant(int $id) public function getCoEncadrant(?int $id) : ?Acteur { if ($id === null) return null; $qb = $this->createQueryBuilder() ->andWhere('acteur.id = :id') ->setParameter('id', $id) Loading