{"record":{"id":"2268861f71aa4e2d","repo":"doctrine/orm","slug":"no-metadata-for-dql-alias-s","errorCode":null,"errorMessage":"No metadata for DQL alias: %s","messagePattern":"No metadata for DQL alias: (.+?)","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"src/Query/Parser.php","lineNumber":3529,"sourceCode":"        // getCustomStringFunction is case-insensitive\n        $functionName  = $this->lexer->lookahead->value;\n        $functionClass = $this->em->getConfiguration()->getCustomStringFunction($functionName);\n\n        assert($functionClass !== null);\n\n        $function = is_string($functionClass)\n            ? new $functionClass($functionName)\n            : $functionClass($functionName);\n\n        $function->parse($this);\n\n        return $function;\n    }\n\n    private function getMetadataForDqlAlias(string $dqlAlias): ClassMetadata\n    {\n        if (! isset($this->queryComponents[$dqlAlias]['metadata'])) {\n            throw new LogicException(sprintf('No metadata for DQL alias: %s', $dqlAlias));\n        }\n\n        return $this->queryComponents[$dqlAlias]['metadata'];\n    }\n}\n","sourceCodeStart":3511,"sourceCodeEnd":3535,"githubUrl":"https://github.com/doctrine/orm/blob/d9b9ff73016bf598ae07515f97289ce8074e97a5/src/Query/Parser.php#L3511-L3535","documentation":"Error \"No metadata for DQL alias: %s\" thrown in doctrine/orm.","triggerScenarios":"Thrown at src/Query/Parser.php:3529 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d9b9ff73016bf598ae07515f97289ce8074e97a5","analyzedAt":"2026-08-21T06:13:15.863Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}