{"record":{"id":"d9f4dd4972443658","repo":"phalcon/cphalcon","slug":"column-type-is-corrupt","errorCode":null,"errorMessage":"Column type is corrupt","messagePattern":"Column type is corrupt","errorType":"exception","errorClass":"Phalcon\\Mvc\\Model\\Exceptions\\CorruptColumnType","httpStatus":null,"severity":"error","filePath":"phalcon/Mvc/Model/Resultset/Complex.zep","lineNumber":194,"sourceCode":"                break;\n\n            case Resultset::HYDRATE_OBJECTS:\n            default:\n                let activeRow = new stdClass();\n                break;\n        }\n\n        /**\n         * Set records as dirty state PERSISTENT by default\n         */\n        let dirtyState = 0;\n\n        /**\n         * Create every record according to the column types\n         */\n        for alias, column in this->columnTypes {\n            if unlikely typeof column != \"array\" {\n                throw new CorruptColumnType();\n            }\n\n            let type = column[\"type\"];\n\n            if type == \"object\" {\n                /**\n                 * Object columns are assigned column by column\n                 */\n                let source = column[\"column\"],\n                    attributes = column[\"attributes\"],\n                    columnMap = column[\"columnMap\"];\n\n                /**\n                 * Assign the values from the _source_attribute notation to its real column name\n                 */\n                let rowModel = [];\n\n                for attribute in attributes {","sourceCodeStart":176,"sourceCodeEnd":212,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Mvc/Model/Resultset/Complex.zep#L176-L212","documentation":"Thrown in Resultset\\Complex::current while hydrating rows: an entry in this->columnTypes is not an array, so the column descriptor produced by the query is malformed and the row cannot be hydrated. The input at fault is the columnTypes metadata of the resultset (usually internal, from SQL select).","triggerScenarios":"Thrown at phalcon/Mvc/Model/Resultset/Complex.zep:194 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Clear cached resultset/SQL descriptions; a stale or hand-edited cache can corrupt columnTypes.","Avoid unserializing resultsets produced by a different Phalcon version.","Catch and log the columnTypes structure for diagnosis."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b7419de9cd0a8a3f48441ead84c9f8415d463e25","analyzedAt":"2026-08-21T06:21:18.811Z","contentChangedAt":"2026-08-21T06:21:18.811Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}