phalcon/cphalcon · error · Phalcon\Mvc\Model\Exceptions\CorruptColumnType
Column type is corrupt
Error message
Column type is corrupt
What it means
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).
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.
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at phalcon/Mvc/Model/Resultset/Complex.zep:194 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of phalcon/cphalcon@b7419de9cd (2026-08-21).
Data as JSON: /api/errors/d9f4dd4972443658.
Report an issue: GitHub.
Appendix: source
Thrown at phalcon/Mvc/Model/Resultset/Complex.zep:194
break;
case Resultset::HYDRATE_OBJECTS:
default:
let activeRow = new stdClass();
break;
}
/**
* Set records as dirty state PERSISTENT by default
*/
let dirtyState = 0;
/**
* Create every record according to the column types
*/
for alias, column in this->columnTypes {
if unlikely typeof column != "array" {
throw new CorruptColumnType();
}
let type = column["type"];
if type == "object" {
/**
* Object columns are assigned column by column
*/
let source = column["column"],
attributes = column["attributes"],
columnMap = column["columnMap"];
/**
* Assign the values from the _source_attribute notation to its real column name
*/
let rowModel = [];
for attribute in attributes {View on GitHub (pinned to b7419de9cd)