public function addOpcao(ProdutoOpcao $obj, ProdutoOpcaoValor $obj2) { if ($this->getId() != '') { $pOG = new ProdutoOpcaoGerado(); $pOG->setOpcao($obj); $pOG->setValor($obj2); $this->opcoes->inserir($pOG, $this); } }
public function deletar(ProdutoOpcaoGerado $obj) { $where = "WHERE " . self::ID . " = '" . $obj->getId() . "'"; $this->con->deletar(Sistema::$BDPrefixo . $this->tabela, $where); }