Skip to content

Commit

Permalink
Merge pull request #203
Browse files Browse the repository at this point in the history
dev
  • Loading branch information
leonardosahon authored Nov 22, 2024
2 parents 3be5a62 + ede61e1 commit 02ccc3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Orm/Traits/TransactionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ final public function commit_or_rollback(#[ExpectedValues([
if($this->query_info['status'] == OrmExecStatus::FAIL)
return $this->rollback($flags, $name);

if($this->query_info['status'] == OrmExecStatus::SUCCESS && self::$DB_IN_TRANSACTION)
if($this->query_info['status'] == OrmExecStatus::SUCCESS)
return $this->commit($flags, $name);

return false;
Expand Down

0 comments on commit 02ccc3b

Please sign in to comment.