Skip to content

Commit

Permalink
Swap isNestedTransaction() for getSavepointIdentifier()
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Dec 7, 2023
1 parent ba24646 commit caaf64c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ public function getIsolationLevel(): TransactionIsolation;
public function isActive(): bool;

/**
* @return bool True if this transaction was created inside another transaction using a savepoint.
* @return string|null Nested transaction identifier or null if a top-level transaction.
*/
public function isNestedTransaction(): bool;
public function getSavepointIdentifier(): ?string;

/**
* Commits the transaction and makes it inactive.
Expand Down

0 comments on commit caaf64c

Please sign in to comment.