/** * Transforms a string (number) to an object (issue). * * @param string $id * @return PageInterface|null * @throws TransformationFailedException if object (issue) is not found. */ public function reverseTransform($id) { if (!$id) { return null; } $page = $this->om->findById($id); if (null === $page) { throw new TransformationFailedException(sprintf('An page with id "%s" does not exist!', $id)); } return $page; }