diff --git a/lib/Doctrine/ORM/EntityManager.php b/lib/Doctrine/ORM/EntityManager.php index d075d418c..049ac0f72 100644 --- a/lib/Doctrine/ORM/EntityManager.php +++ b/lib/Doctrine/ORM/EntityManager.php @@ -425,7 +425,7 @@ use Doctrine\Common\Util\ClassUtils; break; case LockMode::NONE === $lockMode: - case LockMode::PESSIMISTIC_READ === $lockMode; + case LockMode::PESSIMISTIC_READ === $lockMode: case LockMode::PESSIMISTIC_WRITE === $lockMode: $persister = $unitOfWork->getEntityPersister($class->name); $persister->refresh($sortedId, $entity, $lockMode);