Loading module/Application/src/Application/Controller/EcoleDoctoraleController.php +1 −1 Changes for module/Application/src/Application/Controller/EcoleDoctoraleController.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -44,7 +44,7 @@ class EcoleDoctoraleController extends AbstractController $effectifs = []; foreach ($roles as $role) { $individus = $this->individuService->getIndividuByRole($role); $individus = $this->individuService->getRepository()->findByRole($role); $effectifs[$role->getLibelle()] = $individus; } } Loading module/Application/src/Application/Controller/EtablissementController.php +1 −1 Changes for module/Application/src/Application/Controller/EtablissementController.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -64,7 +64,7 @@ class EtablissementController extends AbstractController $effectifs = []; foreach ($roles as $role) { $individus = $this->individuService->getIndividuByRole($role); $individus = $this->individuService->getRepository()->findByRole($role); $effectifs[$role->getLibelle()] = $individus; } } Loading module/Application/src/Application/Controller/MailConfirmationController.php +2 −2 Changes for module/Application/src/Application/Controller/MailConfirmationController.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ class MailConfirmationController extends AbstractController { $data = $request->getPost(); if (isset($data['idIndividu'])) { $individu = $this->individuService->getIndviduById($data['idIndividu']); $individu = $this->individuService->getRepository()->find($data['idIndividu']); $mailConfirmation->setIndividu($individu); if (isset($data['email']) && $data['email'] !== "") { $mailConfirmation->setEmail($data['email']); Loading @@ -66,7 +66,7 @@ class MailConfirmationController extends AbstractController { //pas de mail on reste sur le formulaire } } else { $individu = $this->individuService->getIndviduById($data['individu']['id']); $individu = $this->individuService->getRepository()->find($data['individu']['id']); $mailConfirmation->setIndividu($individu); } Loading module/Application/src/Application/Controller/UniteRechercheController.php +4 −4 Changes for module/Application/src/Application/Controller/UniteRechercheController.php: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ class UniteRechercheController extends AbstractController $effectifs = []; foreach ($roles as $role) { $individus = $this->individuService->getIndividuByRole($role); $individus = $this->individuService->getRepository()->findByRole($role); $effectifs[$role->getLibelle()] = $individus; } } Loading Loading @@ -136,7 +136,7 @@ class UniteRechercheController extends AbstractController $etablissements = $this->getEtablissementService()->getRepository()->findAll(); $etablissementsRattachements = $this->getUniteRechercheService()->findEtablissementRattachement($unite); $domaineScientifiques = $this->getDomaineScientifiqueService()->getDomainesScientifiques(); $domaineScientifiques = $this->getDomaineScientifiqueService()->getRepository()->findAll(); // envoie vers le formulaire de modification $viewModel = new ViewModel([ Loading Loading @@ -352,7 +352,7 @@ class UniteRechercheController extends AbstractController $uniteId = $this->params()->fromRoute("uniteRecherche"); $domaineId = $this->params()->fromRoute("domaineScientifique"); $unite = $this->getUniteRechercheService()->getRepository()->findByStructureId($uniteId); $domaine = $this->getDomaineScientifiqueService()->getDomaineScientifiqueById($domaineId); $domaine = $this->getDomaineScientifiqueService()->getRepository()->find($domaineId); if ($domaine !== null && !array_search($domaine, $unite->getDomaines())) { $domaine = $domaine->addUnite($unite); Loading @@ -373,7 +373,7 @@ class UniteRechercheController extends AbstractController $uniteId = $this->params()->fromRoute("uniteRecherche"); $domaineId = $this->params()->fromRoute("domaineScientifique"); $unite = $this->getUniteRechercheService()->getRepository()->findByStructureId($uniteId); $domaine = $this->getDomaineScientifiqueService()->getDomaineScientifiqueById($domaineId); $domaine = $this->getDomaineScientifiqueService()->getRepository()->find($domaineId); $domaine = $domaine->removeUnite($unite); $unite = $unite->removeDomaine($domaine); Loading module/Application/src/Application/Controller/UtilisateurController.php +7 −7 Changes for module/Application/src/Application/Controller/UtilisateurController.php: 7 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ class UtilisateurController extends \UnicaenAuth\Controller\UtilisateurControlle $request = $this->getRequest(); if ($request->isPost()) { $data = $request->getPost()['individu']; $individu = $this->individuService->getIndviduById($data['id']); $individu = $this->individuService->getRepository()->find($data['id']); $params = []; if ($individu !== null) $params = ["query" => ["id" => $data['id']]]; $this->redirect()->toRoute(null, [], $params, true); Loading @@ -62,8 +62,8 @@ class UtilisateurController extends \UnicaenAuth\Controller\UtilisateurControlle $individuId = $this->params()->fromQuery("id"); if ($individuId !== null) { $individu = $this->individuService->getIndviduById($individuId); $rolesAffectes = $this->roleService->getRoleByIndividu($individu); $individu = $this->individuService->getRepository()->find($individuId); $rolesAffectes = $this->roleService->getRepository()->findAllByIndividu($individu); } $roles = $this->roleService->getRoles(); Loading Loading @@ -263,9 +263,9 @@ class UtilisateurController extends \UnicaenAuth\Controller\UtilisateurControlle $request = $this->getRequest(); if ($request->isPost()) { $individuId = $this->params()->fromRoute('individu'); $individu = $this->getIndividuService()->getIndviduById($individuId); $individu = $this->getIndividuService()->getRepository()->find($individuId); $roleId = $this->params()->fromRoute('role'); $role = $this->getRoleService()->getRoleById($roleId); $role = $this->getRoleService()->getRepository()->find($roleId); $this->roleService->removeRole($individuId, $roleId); $this->notifierService->triggerChangementRole("retrait", $role, $individu); Loading @@ -282,9 +282,9 @@ class UtilisateurController extends \UnicaenAuth\Controller\UtilisateurControlle $request = $this->getRequest(); if ($request->isPost()) { $individuId = $this->params()->fromRoute('individu'); $individu = $this->getIndividuService()->getIndviduById($individuId); $individu = $this->getIndividuService()->getRepository()->find($individuId); $roleId = $this->params()->fromRoute('role'); $role = $this->getRoleService()->getRoleById($roleId); $role = $this->getRoleService()->getRepository()->find($roleId); $this->roleService->addRole($individuId, $roleId); $this->notifierService->triggerChangementRole("ajout", $role, $individu); Loading Loading
module/Application/src/Application/Controller/EcoleDoctoraleController.php +1 −1 Changes for module/Application/src/Application/Controller/EcoleDoctoraleController.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -44,7 +44,7 @@ class EcoleDoctoraleController extends AbstractController $effectifs = []; foreach ($roles as $role) { $individus = $this->individuService->getIndividuByRole($role); $individus = $this->individuService->getRepository()->findByRole($role); $effectifs[$role->getLibelle()] = $individus; } } Loading
module/Application/src/Application/Controller/EtablissementController.php +1 −1 Changes for module/Application/src/Application/Controller/EtablissementController.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -64,7 +64,7 @@ class EtablissementController extends AbstractController $effectifs = []; foreach ($roles as $role) { $individus = $this->individuService->getIndividuByRole($role); $individus = $this->individuService->getRepository()->findByRole($role); $effectifs[$role->getLibelle()] = $individus; } } Loading
module/Application/src/Application/Controller/MailConfirmationController.php +2 −2 Changes for module/Application/src/Application/Controller/MailConfirmationController.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ class MailConfirmationController extends AbstractController { $data = $request->getPost(); if (isset($data['idIndividu'])) { $individu = $this->individuService->getIndviduById($data['idIndividu']); $individu = $this->individuService->getRepository()->find($data['idIndividu']); $mailConfirmation->setIndividu($individu); if (isset($data['email']) && $data['email'] !== "") { $mailConfirmation->setEmail($data['email']); Loading @@ -66,7 +66,7 @@ class MailConfirmationController extends AbstractController { //pas de mail on reste sur le formulaire } } else { $individu = $this->individuService->getIndviduById($data['individu']['id']); $individu = $this->individuService->getRepository()->find($data['individu']['id']); $mailConfirmation->setIndividu($individu); } Loading
module/Application/src/Application/Controller/UniteRechercheController.php +4 −4 Changes for module/Application/src/Application/Controller/UniteRechercheController.php: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ class UniteRechercheController extends AbstractController $effectifs = []; foreach ($roles as $role) { $individus = $this->individuService->getIndividuByRole($role); $individus = $this->individuService->getRepository()->findByRole($role); $effectifs[$role->getLibelle()] = $individus; } } Loading Loading @@ -136,7 +136,7 @@ class UniteRechercheController extends AbstractController $etablissements = $this->getEtablissementService()->getRepository()->findAll(); $etablissementsRattachements = $this->getUniteRechercheService()->findEtablissementRattachement($unite); $domaineScientifiques = $this->getDomaineScientifiqueService()->getDomainesScientifiques(); $domaineScientifiques = $this->getDomaineScientifiqueService()->getRepository()->findAll(); // envoie vers le formulaire de modification $viewModel = new ViewModel([ Loading Loading @@ -352,7 +352,7 @@ class UniteRechercheController extends AbstractController $uniteId = $this->params()->fromRoute("uniteRecherche"); $domaineId = $this->params()->fromRoute("domaineScientifique"); $unite = $this->getUniteRechercheService()->getRepository()->findByStructureId($uniteId); $domaine = $this->getDomaineScientifiqueService()->getDomaineScientifiqueById($domaineId); $domaine = $this->getDomaineScientifiqueService()->getRepository()->find($domaineId); if ($domaine !== null && !array_search($domaine, $unite->getDomaines())) { $domaine = $domaine->addUnite($unite); Loading @@ -373,7 +373,7 @@ class UniteRechercheController extends AbstractController $uniteId = $this->params()->fromRoute("uniteRecherche"); $domaineId = $this->params()->fromRoute("domaineScientifique"); $unite = $this->getUniteRechercheService()->getRepository()->findByStructureId($uniteId); $domaine = $this->getDomaineScientifiqueService()->getDomaineScientifiqueById($domaineId); $domaine = $this->getDomaineScientifiqueService()->getRepository()->find($domaineId); $domaine = $domaine->removeUnite($unite); $unite = $unite->removeDomaine($domaine); Loading
module/Application/src/Application/Controller/UtilisateurController.php +7 −7 Changes for module/Application/src/Application/Controller/UtilisateurController.php: 7 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ class UtilisateurController extends \UnicaenAuth\Controller\UtilisateurControlle $request = $this->getRequest(); if ($request->isPost()) { $data = $request->getPost()['individu']; $individu = $this->individuService->getIndviduById($data['id']); $individu = $this->individuService->getRepository()->find($data['id']); $params = []; if ($individu !== null) $params = ["query" => ["id" => $data['id']]]; $this->redirect()->toRoute(null, [], $params, true); Loading @@ -62,8 +62,8 @@ class UtilisateurController extends \UnicaenAuth\Controller\UtilisateurControlle $individuId = $this->params()->fromQuery("id"); if ($individuId !== null) { $individu = $this->individuService->getIndviduById($individuId); $rolesAffectes = $this->roleService->getRoleByIndividu($individu); $individu = $this->individuService->getRepository()->find($individuId); $rolesAffectes = $this->roleService->getRepository()->findAllByIndividu($individu); } $roles = $this->roleService->getRoles(); Loading Loading @@ -263,9 +263,9 @@ class UtilisateurController extends \UnicaenAuth\Controller\UtilisateurControlle $request = $this->getRequest(); if ($request->isPost()) { $individuId = $this->params()->fromRoute('individu'); $individu = $this->getIndividuService()->getIndviduById($individuId); $individu = $this->getIndividuService()->getRepository()->find($individuId); $roleId = $this->params()->fromRoute('role'); $role = $this->getRoleService()->getRoleById($roleId); $role = $this->getRoleService()->getRepository()->find($roleId); $this->roleService->removeRole($individuId, $roleId); $this->notifierService->triggerChangementRole("retrait", $role, $individu); Loading @@ -282,9 +282,9 @@ class UtilisateurController extends \UnicaenAuth\Controller\UtilisateurControlle $request = $this->getRequest(); if ($request->isPost()) { $individuId = $this->params()->fromRoute('individu'); $individu = $this->getIndividuService()->getIndviduById($individuId); $individu = $this->getIndividuService()->getRepository()->find($individuId); $roleId = $this->params()->fromRoute('role'); $role = $this->getRoleService()->getRoleById($roleId); $role = $this->getRoleService()->getRepository()->find($roleId); $this->roleService->addRole($individuId, $roleId); $this->notifierService->triggerChangementRole("ajout", $role, $individu); Loading