diff --git a/lib/Doctrine/ORM/UnitOfWork.php b/lib/Doctrine/ORM/UnitOfWork.php index 94549cc9c..50eb56ecb 100644 --- a/lib/Doctrine/ORM/UnitOfWork.php +++ b/lib/Doctrine/ORM/UnitOfWork.php @@ -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);