public function busquedaNovedades(NovedadesDTO $dto, PDO $cnn)
 {
     try {
         $sentencia = $cnn->prepare("Select * from novedades where idNovedad like '%" . $dto->getIdNovedad() . "%' and usuariosIdUsuario like '%" . $dto->getIdUsuario() . "%'\n                                and proyectos_idProyecto like '%" . $dto->getIdProyecto() . "%' and categoria like '%" . $dto->getCategoria() . "%' and descripcion like '%" . $dto->getDescripcion() . "%' and fecha like '%" . $dto->getFecha() . "%' ");
         $sentencia->execute();
         return $sentencia->fetchAll();
     } catch (Exception $ex) {
         $mensaje = $ex->getMessage();
         return $mensaje;
     }
     $cnn = NULL;
 }
 public function crearNovedad(NovedadesDTO $objetoNov, PDO $cnn)
 {
     $mensaje = '';
     try {
         $query = $cnn->prepare("insert into novedades values(DEFAULT,?,?,?,?,now(),?,?,?,?)");
         $query->bindParam(1, $objetoNov->getIdUsuario());
         $query->bindParam(2, $objetoNov->getIdProyecto());
         $query->bindParam(3, $objetoNov->getCategoria());
         $query->bindParam(4, $objetoNov->getDescripcion());
         $query->bindParam(5, $objetoNov->getArchivo());
         $query->bindParam(6, $objetoNov->getSolucion());
         $query->bindParam(7, $objetoNov->getFechaSolucion());
         $query->bindParam(8, $objetoNov->getEstadoSolucion());
         $query->execute();
         $mensaje = "Novedad Registrada";
     } catch (Exception $ex) {
         $mensaje = $ex->getMessage();
     }
     $cnn = NULL;
     return $mensaje;
 }