public function checkProfile(sfWebRequest $request, EiProjet $ei_project, $setProfileSession = true)
 {
     $this->profile_id = $request->getParameter('profile_id');
     $this->profile_ref = $request->getParameter('profile_ref');
     if ($this->profile_id != null && $this->profile_ref != null) {
         //Recherche du profil en base
         $this->ei_profile = Doctrine_Core::getTable('EiProfil')->findOneByProfileIdAndProfileRefAndProjectIdAndProjectRef($this->profile_id, $this->profile_ref, $ei_project->getProjectId(), $ei_project->getRefId());
         //Si la fonction n'existe pas , alors on retourne null
         if ($this->ei_profile == null) {
             $this->ei_profile = null;
         } else {
             if ($setProfileSession) {
                 //Si l'utilisateur décide de mettre le profil recherché en session
                 $this->setProfileSession($this->ei_profile->getName(), $this->profile_id, $this->profile_ref);
             }
             $this->profile_name = MyFunction::sluggifyStr($this->ei_profile->getName());
             //Définition du tableau de paramètres basique pour les différents objets
             $this->urlParameters = array('project_id' => $ei_project->getProjectId(), 'project_ref' => $ei_project->getRefId(), 'profile_id' => $this->profile_id, 'profile_ref' => $this->profile_ref, 'profile_name' => $this->profile_name);
         }
     } else {
         $this->profile_id = null;
         $this->profile_ref = null;
     }
 }