Example #1
0
 public function deletaCadastroTimes(Times $Times)
 {
     $this->conn->beginTransaction();
     try {
         $stmt = $this->conn->prepare('DELETE 
 FROM
 tb_times 
 WHERE idTime = :idTime');
         $dados = array(':idTime' => $Times->PegarIntxId());
         $stmt->execute($dados);
         $this->conn->commit();
     } catch (Exception $e) {
         $this->conn->rollback();
     }
 }