public function alterar(ProdutoOpcaoValor $obj)
 {
     $where = "WHERE " . self::ID . " = '" . $obj->getId() . "'";
     $this->con->alterar(Sistema::$BDPrefixo . $this->tabela, self::VALOR, $obj->valor, $where);
     $this->con->alterar(Sistema::$BDPrefixo . $this->tabela, self::COR, $obj->cor, $where);
     if (!empty($obj->getImagem()->url)) {
         $obj->getImagem()->open();
         $imagem = $obj->getImagem()->saveImage(Sistema::$caminhoDiretorio . Sistema::$caminhoDataProdutoOpcoes);
         $this->con->alterar(Sistema::$BDPrefixo . $this->tabela, self::IMAGEM, $imagem, $where);
     }
 }