diff --git a/lib/Doctrine/ORM/EntityManager.php b/lib/Doctrine/ORM/EntityManager.php index e9ea2acda..e36dd4047 100644 --- a/lib/Doctrine/ORM/EntityManager.php +++ b/lib/Doctrine/ORM/EntityManager.php @@ -238,7 +238,7 @@ use Doctrine\Common\Util\ClassUtils; return $return ?: true; } catch (Exception $e) { $this->close(); - $this->conn->rollback(); + $this->conn->rollBack(); throw $e; } @@ -257,7 +257,7 @@ use Doctrine\Common\Util\ClassUtils; */ public function rollback() { - $this->conn->rollback(); + $this->conn->rollBack(); } /** diff --git a/lib/Doctrine/ORM/UnitOfWork.php b/lib/Doctrine/ORM/UnitOfWork.php index 3ba860b89..2732465a3 100644 --- a/lib/Doctrine/ORM/UnitOfWork.php +++ b/lib/Doctrine/ORM/UnitOfWork.php @@ -410,7 +410,7 @@ class UnitOfWork implements PropertyChangedListener $conn->commit(); } catch (Exception $e) { $this->em->close(); - $conn->rollback(); + $conn->rollBack(); $this->afterTransactionRolledBack();