protected function getContentByDataValue($type, $value)
    {
        $element = new $type($value);

        if (null !== $this->em) {
            $element = $this->em->getRepository($type)->load($element, $this->token);
        }

        return $element;
    }
protected function getContentByDataValue($type, $value)
    {
        $element = new $type($value);

        if (null !== $this->em) {
            $element = $this->em->getRepository($type)->load($element, $this->token);
        }

        return $element;
    }
protected function getContentByDataValue ( $ type , $ value ) { $ element = new $ type ( $ value ) ; if ( null !== $ this -> em ) { $ element = $ this -> em -> getRepository ( $ type ) -> load ( $ element , $ this -> token ) ; } return $ element ; }
Return a subcontent instance by its type and value, FALSE if not found.

@param string $type  The classname of the subcontent
@param string $value The value of the subcontent (uid)

@return AbstractClassContent
Return a subcontent instance by its type and value FALSE if not found .