public function checkLogicBetweenProjectAndProfile(EiProjet $ei_project, EiProfil $ei_profile) { //On vérifie si le profil appartient bien au projet if ($ei_project->getProjectId() != $ei_profile->getProjectId() || $ei_project->getRefId() != $ei_profile->getProjectRef()) { $this->forward404('Environment don\'t belong to project'); } }