From 16cfd2635538dfc7c5e54c733c114acd3514ed4b Mon Sep 17 00:00:00 2001 From: Ziaratban Date: Sun, 15 Dec 2024 14:24:14 +0330 Subject: [PATCH] dev --- src/Transaction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Transaction.php b/src/Transaction.php index adfdeb2f1..e26be0cfa 100644 --- a/src/Transaction.php +++ b/src/Transaction.php @@ -193,7 +193,7 @@ public function safeRollBack(&$exception = null) } } - public function run($query, $throw = false, $log = false, $commit = false){ + public function run($query, $throw = true, $log = false, $commit = false){ $lastMongoSession = $this->clientSession->db->getSession(); try { if(!$this->clientSession->getInTransaction())