{"record":{"id":"6ca338074cd4c0cf","repo":"doctrine/orm","slug":"unable-to-retrieve-association-information-for-col","errorCode":null,"errorMessage":"Unable to retrieve association information for column \"%s\"","messagePattern":"Unable to retrieve association information for column \"(.+?)\"","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/Internal/Hydration/SimpleObjectHydrator.php","lineNumber":118,"sourceCode":"                ));\n            }\n\n            $discrMap = $this->class->discriminatorMap;\n\n            if (! isset($discrMap[$row[$discrColumnName]])) {\n                throw HydrationException::invalidDiscriminatorValue($row[$discrColumnName], array_keys($discrMap));\n            }\n\n            $entityName       = $discrMap[$row[$discrColumnName]];\n            $discrColumnValue = $row[$discrColumnName];\n\n            unset($row[$discrColumnName]);\n        }\n\n        foreach ($row as $column => $value) {\n            // An ObjectHydrator should be used instead of SimpleObjectHydrator\n            if (isset($this->resultSetMapping()->relationMap[$column])) {\n                throw new Exception(sprintf('Unable to retrieve association information for column \"%s\"', $column));\n            }\n\n            $cacheKeyInfo = $this->hydrateColumnInfo($column);\n\n            if (! $cacheKeyInfo) {\n                continue;\n            }\n\n            // If we have inheritance in resultset, make sure the field belongs to the correct class\n            if (isset($cacheKeyInfo['discriminatorValues']) && ! in_array((string) $discrColumnValue, $cacheKeyInfo['discriminatorValues'], true)) {\n                continue;\n            }\n\n            // Check if value is null before conversion (because some types convert null to something else)\n            $valueIsNull = $value === null;\n\n            // Convert field to a valid PHP value\n            if (isset($cacheKeyInfo['type'])) {","sourceCodeStart":100,"sourceCodeEnd":136,"githubUrl":"https://github.com/doctrine/orm/blob/d9b9ff73016bf598ae07515f97289ce8074e97a5/src/Internal/Hydration/SimpleObjectHydrator.php#L100-L136","documentation":"Error \"Unable to retrieve association information for column \"%s\"\" thrown in doctrine/orm.","triggerScenarios":"Thrown at src/Internal/Hydration/SimpleObjectHydrator.php:118 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"}