public function deletar(Atividade $at) { $where = "WHERE id = '" . $at->getId() . "'"; while ($sa = $at->getSubAtividade->listar()) { $at->getSubAtividade()->deletar($sa); } $this->con->deletar(BDPrefixo . $this->tabela, $where); }