lib/Doctrine/ORM/Query/Parser.php
private function validateAbstractSchemaName($schemaName) : void
    {
        if (class_exists($schemaName, true) || interface_exists($schemaName, true)) {
            return;
        }

        try {
            $this->getEntityManager()->getClassMetadata($schemaName);

            return;
        } catch (MappingException $mappingException) {
            $this->semanticalError(
                sprintf('Class %s could not be mapped', $schemaName),
                $this->lexer->token
            );
        }

        $this->semanticalError(sprintf("Class '%s' is not defined.", $schemaName), $this->lexer->token);
    }
private function validateAbstractSchemaName($schemaName) : void
    {
        if (class_exists($schemaName, true) || interface_exists($schemaName, true)) {
            return;
        }

        try {
            $this->getEntityManager()->getClassMetadata($schemaName);

            return;
        } catch (MappingException $mappingException) {
            $this->semanticalError(
                sprintf('Class %s could not be mapped', $schemaName),
                $this->lexer->token
            );
        }

        $this->semanticalError(sprintf("Class '%s' is not defined.", $schemaName), $this->lexer->token);
    }
private function validateAbstractSchemaName ( $ schemaName ) : void { if ( class_exists ( $ schemaName , true ) || interface_exists ( $ schemaName , true ) ) { return ; } try { $ this -> getEntityManager ( ) -> getClassMetadata ( $ schemaName ) ; return ; } catch ( MappingException $ mappingException ) { $ this -> semanticalError ( sprintf ( 'Class %s could not be mapped' , $ schemaName ) , $ this -> lexer -> token ) ; } $ this -> semanticalError ( sprintf ( "Class '%s' is not defined." , $ schemaName ) , $ this -> lexer -> token ) ; }
Validates an AbstractSchemaName, making sure the class exists.

@param string $schemaName The name to validate.

@throws QueryException If the name does not exist.
Validates an AbstractSchemaName making sure the class exists .