Handle all errors in UnitOfWork commit
This commit is contained in:
parent
9a0089c5fa
commit
b3805549d9
@ -13,7 +13,7 @@
|
||||
],
|
||||
"minimum-stability": "dev",
|
||||
"require": {
|
||||
"php": ">=5.4",
|
||||
"php": ">=7.0",
|
||||
"ext-pdo": "*",
|
||||
"doctrine/collections": "~1.2",
|
||||
"doctrine/dbal": ">=2.5-dev,<2.7-dev",
|
||||
|
@ -408,7 +408,7 @@ class UnitOfWork implements PropertyChangedListener
|
||||
}
|
||||
|
||||
$conn->commit();
|
||||
} catch (Exception $e) {
|
||||
} catch (\Throwable $e) {
|
||||
$this->em->close();
|
||||
$conn->rollback();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user