diff --git a/src/Domain/AbstractManager.php b/src/Domain/AbstractManager.php index 235480d..355a38a 100644 --- a/src/Domain/AbstractManager.php +++ b/src/Domain/AbstractManager.php @@ -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();