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())