diff --git a/lib/Doctrine/KeyValueStore/Storage/DBALStorage.php b/lib/Doctrine/KeyValueStore/Storage/DBALStorage.php index 93007fa..def8cc3 100644 --- a/lib/Doctrine/KeyValueStore/Storage/DBALStorage.php +++ b/lib/Doctrine/KeyValueStore/Storage/DBALStorage.php @@ -82,13 +82,10 @@ public function requiresCompositePrimaryKeys() */ public function insert($storageName, $key, array $data) { - try { - $this->conn->insert($this->table, [ - $this->keyColumn => $key, - $this->dataColumn => serialize($data), - ]); - } catch (\Exception $e) { - } + $this->conn->insert($this->table, [ + $this->keyColumn => $key, + $this->dataColumn => serialize($data), + ]); } /** @@ -99,14 +96,11 @@ public function insert($storageName, $key, array $data) */ public function update($storageName, $key, array $data) { - try { - $this->conn->update($this->table, [ - $this->dataColumn => serialize($data), - ], [ - $this->keyColumn => $key, - ]); - } catch (\Exception $e) { - } + $this->conn->update($this->table, [ + $this->dataColumn => serialize($data), + ], [ + $this->keyColumn => $key, + ]); } /** @@ -116,10 +110,7 @@ public function update($storageName, $key, array $data) */ public function delete($storageName, $key) { - try { - $this->conn->delete($this->table, [$this->keyColumn => $key]); - } catch (\Exception $e) { - } + $this->conn->delete($this->table, [$this->keyColumn => $key]); } /**