Skip to content

Commit

Permalink
Fix for doctrine#7366
Browse files Browse the repository at this point in the history
  • Loading branch information
timdev committed Aug 22, 2018
1 parent f689fda commit 2394547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/EntityManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ private function checkLockRequirements(int $lockMode, ClassMetadata $class): voi
if (!$class->isVersioned) {
throw OptimisticLockException::notVersioned($class->name);
}
// Intentional fallthrough
break;
case LockMode::PESSIMISTIC_READ:
case LockMode::PESSIMISTIC_WRITE:
if (!$this->getConnection()->isTransactionActive()) {
Expand Down

0 comments on commit 2394547

Please sign in to comment.