Пример #1
0
 protected function check_constraints()
 {
     $this->db->agregar_savepoint('chequeo_conflicto');
     $sql = $this->to_sql();
     $fallo = false;
     try {
         $this->db->ejecutar($sql);
         $this->db->liberar_savepoint('chequeo_conflicto');
     } catch (toba_error_db $e) {
         $fallo = $e;
         $this->db->abortar_savepoint('chequeo_conflicto');
     }
     return $fallo;
 }