From a216d0fca57089815652f732301992e0aa125d8d Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Tue, 7 Jan 2020 15:13:03 +0100 Subject: [PATCH] Revert "launch transactionCommitted before decreasinig the transactions level (#30883)" This reverts commit 9343d72f76573f490933dd2fd7952657f62329a4. --- src/Illuminate/Database/Concerns/ManagesTransactions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Database/Concerns/ManagesTransactions.php b/src/Illuminate/Database/Concerns/ManagesTransactions.php index 8fd522afe664..39aa7849b73e 100644 --- a/src/Illuminate/Database/Concerns/ManagesTransactions.php +++ b/src/Illuminate/Database/Concerns/ManagesTransactions.php @@ -171,9 +171,9 @@ public function commit() $this->getPdo()->commit(); } - $this->fireConnectionEvent('committed'); - $this->transactions = max(0, $this->transactions - 1); + + $this->fireConnectionEvent('committed'); } /**