/** * Returns the current model state. * * @param ModelInterface $model * @param string $processName * @return FreeAgent\WorkflowBundle\Entity\ModelState */ public function findCurrentModelState(ModelInterface $model, $processName) { return $this->repository->findLatestModelState($model->getWorkflowIdentifier(), $processName); }