Skip to content

Commit

Permalink
Entity manager is cleared when the transaction in the Doctrine middle…
Browse files Browse the repository at this point in the history
…ware is successfully commit
  • Loading branch information
tg666 committed Nov 7, 2023
1 parent b465696 commit f5a07e7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public function commitTransaction(): void

$em->flush();
$em->getConnection()->commit();
$em->clear();
} catch (DbalException $e) {
throw TransactionException::unableToCommitTransaction($e->getMessage());
}
Expand Down

0 comments on commit f5a07e7

Please sign in to comment.