Skip to content

Commit

Permalink
Add isTransactionActive method to AbstractManager (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
pulzarraider authored Aug 22, 2024
1 parent 79af698 commit d8497db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Domain/AbstractManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ public function rollback(): void
$this->entityManager->rollback();
}

public function isTransactionActive(): bool
{
return $this->entityManager->getConnection()->isTransactionActive();
}

public function clear(): void
{
$this->entityManager->clear();
Expand Down

0 comments on commit d8497db

Please sign in to comment.