public function create(string $className, string $typeName): Type
    {
        $identifiers = $this->entityManager->getClassMetadata($className)->getIdentifier();
        if (count($identifiers) > 1) {
            throw new Exception('Entities with composite identifiers are not supported by graphql-doctrine. The entity `' . $className . '` cannot be used as input type.');
        }

        return new EntityIDType($this->entityManager, $className, $typeName);
    }
public function create(string $className, string $typeName): Type
    {
        $identifiers = $this->entityManager->getClassMetadata($className)->getIdentifier();
        if (count($identifiers) > 1) {
            throw new Exception('Entities with composite identifiers are not supported by graphql-doctrine. The entity `' . $className . '` cannot be used as input type.');
        }

        return new EntityIDType($this->entityManager, $className, $typeName);
    }
public function create ( string $ className , string $ typeName ) : Type { $ identifiers = $ this -> entityManager -> getClassMetadata ( $ className ) -> getIdentifier ( ) ; if ( count ( $ identifiers ) > 1 ) { throw new Exception ( 'Entities with composite identifiers are not supported by graphql-doctrine. The entity `' . $ className . '` cannot be used as input type.' ) ; } return new EntityIDType ( $ this -> entityManager , $ className , $ typeName ) ; }
Create an EntityIDType from a Doctrine entity

@param string $className class name of Doctrine entity
@param string $typeName GraphQL type name

@return EntityIDType
Create an EntityIDType from a Doctrine entity