1
0
mirror of synced 2024-12-12 22:36:02 +03:00

[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.

This commit is contained in:
romanb 2009-08-26 09:10:14 +00:00
parent 8523648a27
commit c3081adb09

View File

@ -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);