{"record":{"id":"a215f1f58a0bd5dd","repo":"doctrine/orm","slug":"unknown-result-variable-s","errorCode":null,"errorMessage":"Unknown result variable: %s","messagePattern":"Unknown result variable: (.+?)","errorType":"exception","errorClass":"InvalidArgumentException","httpStatus":null,"severity":"error","filePath":"src/Query/SqlWalker.php","lineNumber":2298,"sourceCode":"    }\n\n    /**\n     * Walks down a StringPrimary that represents an AST node, thereby generating the appropriate SQL.\n     */\n    public function walkStringPrimary(AST\\Node|string $stringPrimary): string\n    {\n        return is_string($stringPrimary)\n            ? $this->conn->quote($stringPrimary)\n            : $stringPrimary->dispatch($this);\n    }\n\n    /**\n     * Walks down a ResultVariable that represents an AST node, thereby generating the appropriate SQL.\n     */\n    public function walkResultVariable(string $resultVariable): string\n    {\n        if (! isset($this->scalarResultAliasMap[$resultVariable])) {\n            throw new InvalidArgumentException(sprintf('Unknown result variable: %s', $resultVariable));\n        }\n\n        $resultAlias = $this->scalarResultAliasMap[$resultVariable];\n\n        if (is_array($resultAlias)) {\n            return implode(', ', $resultAlias);\n        }\n\n        return $resultAlias;\n    }\n\n    /**\n     * @return string The list in parentheses of valid child discriminators from the given class\n     *\n     * @throws QueryException\n     */\n    private function getChildDiscriminatorsFromClassMetadata(\n        ClassMetadata $rootClass,","sourceCodeStart":2280,"sourceCodeEnd":2316,"githubUrl":"https://github.com/doctrine/orm/blob/d9b9ff73016bf598ae07515f97289ce8074e97a5/src/Query/SqlWalker.php#L2280-L2316","documentation":"Error \"Unknown result variable: %s\" thrown in doctrine/orm.","triggerScenarios":"Thrown at src/Query/SqlWalker.php:2298 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"}