Skip to content

Commit

Permalink
doctrine#7068 codestyle: add comment about intentional fall-through
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Kühn committed Feb 17, 2018
1 parent e3f17da commit 3a90568
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Doctrine/ORM/EntityManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ public function find($entityName, $id, $lockMode = null, $lockVersion = null)
if (! $class->isVersioned()) {
throw OptimisticLockException::notVersioned($className);
}
// Intentional fallthrough
case LockMode::PESSIMISTIC_READ:
case LockMode::PESSIMISTIC_WRITE:
if (! $this->getConnection()->isTransactionActive()) {
Expand Down

0 comments on commit 3a90568

Please sign in to comment.