lib/Yucca/Form/DataTransformer/ModelToNumberTransformer.php
public function reverseTransform($number)
    {
        if (!$number) {
            return null;
        }

        try {
            $shareType = $this->yuccaEntityManager->load($this->modelClassName, $number);
        } catch (\Exception $e) {
            throw new TransformationFailedException(sprintf(
                'The object can\'t be found',
                $number
            ));
        }

        return $shareType;
    }
public function reverseTransform($number)
    {
        if (!$number) {
            return null;
        }

        try {
            $shareType = $this->yuccaEntityManager->load($this->modelClassName, $number);
        } catch (\Exception $e) {
            throw new TransformationFailedException(sprintf(
                'The object can\'t be found',
                $number
            ));
        }

        return $shareType;
    }
Transforms a string (number) to an object.

@param string $number

@return ModelInterface |null

@throws TransformationFailedException if object (issue) is not found.