-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
pvm/src/Doctrine/DoctrineDAL.php
Lines 128 to 143 in 2de510d
| $ormToken = $this->objectManager->getRepository($this->tokenClass)->findOneBy([ | |
| 'id' => $id, | |
| ]); | |
| if (false == $ormToken) { | |
| throw new \LogicException(sprintf('The token with id "%s" could not be found', $id)); | |
| } | |
| /** @var \Formapro\Pvm\Doctrine\Process $ormProcess */ | |
| $ormProcess = $this->objectManager->getRepository($this->processClass)->findOneBy([ | |
| 'id' => $ormToken->getProcessId(), | |
| ]); | |
| if (false == $ormToken) { | |
| throw new \LogicException(sprintf('The process with id "%s" could not be found', $ormToken->getProcessId())); | |
| } |
It seems that both $ormToken is being verified on lines 132 and 141, but it seems that $ormProcess is more logical on line 141.
Metadata
Metadata
Assignees
Labels
No labels