public function reverseTransform($value)
    {
        if (null === $value) {
            return null;
        }

        $repo = $this->em->getRepository($this->className);
        $entity = $repo->find($value);

        if (!$entity) {
            return null;
        }

        return $entity;
    }
public function reverseTransform($value)
    {
        if (null === $value) {
            return null;
        }

        $repo = $this->em->getRepository($this->className);
        $entity = $repo->find($value);

        if (!$entity) {
            return null;
        }

        return $entity;
    }
public function reverseTransform ( $ value ) { if ( null === $ value ) { return null ; } $ repo = $ this -> em -> getRepository ( $ this -> className ) ; $ entity = $ repo -> find ( $ value ) ; if ( ! $ entity ) { return null ; } return $ entity ; }
Transform to single id value to an entity
@param string $value
@return mixed|null|object
Transform to single id value to an entity