{"record":{"id":"cc1aa8410bbc2594","repo":"doctrine/orm","slug":"not-all-identifier-properties-can-be-found-in-the","errorCode":null,"errorMessage":"Not all identifier properties can be found in the ResultSetMapping: %s","messagePattern":"Not all identifier properties can be found in the ResultSetMapping: (.+?)","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"src/Tools/Pagination/CountOutputWalker.php","lineNumber":112,"sourceCode":"                    }\n                }\n            }\n\n            if (isset($rootClass->associationMappings[$property])) {\n                $association = $rootClass->associationMappings[$property];\n                assert($association->isToOneOwningSide());\n                $joinColumn = $association->joinColumns[0]->name;\n\n                foreach (array_keys($this->rsm->metaMappings, $joinColumn, true) as $alias) {\n                    if ($this->rsm->columnOwnerMap[$alias] === $rootAlias) {\n                        $sqlIdentifier[$property] = $alias;\n                    }\n                }\n            }\n        }\n\n        if (count($rootIdentifier) !== count($sqlIdentifier)) {\n            throw new RuntimeException(sprintf(\n                'Not all identifier properties can be found in the ResultSetMapping: %s',\n                implode(', ', array_diff($rootIdentifier, array_keys($sqlIdentifier))),\n            ));\n        }\n\n        // Build the counter query\n        return sprintf(\n            'SELECT COUNT(*) AS dctrn_count FROM (SELECT DISTINCT %s FROM (%s) dctrn_result) dctrn_table',\n            implode(', ', $sqlIdentifier),\n            $sql,\n        );\n    }\n}\n","sourceCodeStart":94,"sourceCodeEnd":126,"githubUrl":"https://github.com/doctrine/orm/blob/d9b9ff73016bf598ae07515f97289ce8074e97a5/src/Tools/Pagination/CountOutputWalker.php#L94-L126","documentation":"Error \"Not all identifier properties can be found in the ResultSetMapping: %s\" thrown in doctrine/orm.","triggerScenarios":"Thrown at src/Tools/Pagination/CountOutputWalker.php:112 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"}