public static function findByShareByUserByGroupe($userId, $groupeId)
 {
     $mesgroupeHasMachines = array();
     $mesMachines = MachineDAL::findByShareByUser($userId);
     foreach ($mesMachines as $row) {
         $machineNom = $row['nom'];
         //echo $machineNom;
         $machine = MachineDAL::findByDN($userId, $machineNom);
         $machineId = $machine->getId();
         //echo $machineId;
         $statut = self::isInGroupe($groupeId, $machineId);
         if ($statut == true) {
             $groupeHasMachine = self::findByGM($groupeId, $machineId);
             $mesgroupeHasMachines[] = $groupeHasMachine;
         }
     }
     return $mesgroupeHasMachines;
 }