Commit c3081adb authored by romanb's avatar romanb

[2.0] Moved beginTransaction() in UnitOfWork#commit() out of the try block so...

[2.0] Moved beginTransaction() in UnitOfWork#commit() out of the try block so that exceptions occuring during prior or on transaction start are not masked by another exception.
parent 8523648a
......@@ -265,9 +265,9 @@ class UnitOfWork implements PropertyChangedListener
}
$conn = $this->_em->getConnection();
try {
$conn->beginTransaction();
$conn->beginTransaction();
try {
if ($this->_entityInsertions) {
foreach ($commitOrder as $class) {
$this->_executeInserts($class);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment