Skip to content

Commit

Permalink
2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bupy7 committed Mar 31, 2021
1 parent 75c4e83 commit b30eb88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ Result of tree:
use Doctrine\DBAL\TransactionIsolationLevel;

// if you want to change isolation level
// $oldTransaction = $entityManager->getConnection()->getTransactionIsolation();
// $oldIsolationLevel = $entityManager->getConnection()->getTransactionIsolation();
// $entityManager->getConnection()->setTransactionIsolation(TransactionIsolationLevel::SERIALIZABLE);

$entityManager->beginTransaction();
Expand All @@ -398,7 +398,7 @@ try {
throw $e;
} finally {
// if you changed isolation level
// $entityManager->getConnection()->setTransactionIsolation($oldTransaction);
// $entityManager->getConnection()->setTransactionIsolation($oldIsolationLevel);
}
```

Expand Down

0 comments on commit b30eb88

Please sign in to comment.