private function throwIfNotEntity(string $className): void
    {
        if (!$this->isEntity($className)) {
            throw new \UnexpectedValueException('Given class name `' . $className . '` is not a Doctrine entity. Either register a custom GraphQL type for `' . $className . '` when instantiating `' . self::class . '`, or change the usage of that class to something else.');
        }
    }
private function throwIfNotEntity(string $className): void
    {
        if (!$this->isEntity($className)) {
            throw new \UnexpectedValueException('Given class name `' . $className . '` is not a Doctrine entity. Either register a custom GraphQL type for `' . $className . '` when instantiating `' . self::class . '`, or change the usage of that class to something else.');
        }
    }
private function throwIfNotEntity ( string $ className ) : void { if ( ! $ this -> isEntity ( $ className ) ) { throw new \ UnexpectedValueException ( 'Given class name `' . $ className . '` is not a Doctrine entity. Either register a custom GraphQL type for `' . $ className . '` when instantiating `' . self :: class . '`, or change the usage of that class to something else.' ) ; } }
Throw an exception if the class name is not Doctrine entity

@param string $className

@throws \UnexpectedValueException
Throw an exception if the class name is not Doctrine entity