@@ -42,8 +42,7 @@ |
||
| 42 | 42 | $consulta->execute(); |
| 43 | 43 | $this->_ultimaIdInsertada = $this->_conexionBaseDeDatos->lastInsertId(); |
| 44 | 44 | |
| 45 | - } |
|
| 46 | - catch(PDOException $e) |
|
| 45 | + } catch(PDOException $e) |
|
| 47 | 46 | { |
| 48 | 47 | throw new ConsultaException("Error al procesar la consulta"); |
| 49 | 48 | } |
@@ -29,13 +29,13 @@ |
||
| 29 | 29 | public function update(): string |
| 30 | 30 | { |
| 31 | 31 | $set = ""; |
| 32 | - $values = []; |
|
| 32 | + $values = []; |
|
| 33 | 33 | |
| 34 | - foreach ($this->_valoresAInsertar->valoresAInsertar() as $key => $value) |
|
| 35 | - { |
|
| 36 | - $set = $set. ' ' .$key. ' = ?,'; |
|
| 37 | - array_push($values, $value); |
|
| 38 | - } |
|
| 34 | + foreach ($this->_valoresAInsertar->valoresAInsertar() as $key => $value) |
|
| 35 | + { |
|
| 36 | + $set = $set. ' ' .$key. ' = ?,'; |
|
| 37 | + array_push($values, $value); |
|
| 38 | + } |
|
| 39 | 39 | |
| 40 | 40 | $valores = trim($set, ','); |
| 41 | 41 | |