phalcon/cphalcon · error · Phalcon\Mvc\Model\Exceptions\ResultsetColumnNotInMap
Column '{key}' is not part of the column map
Error message
Column '{key}' is not part of the column map What it means
Error "Column '{key}' is not part of the column map" thrown in phalcon/cphalcon.
Source
Thrown at phalcon/Mvc/Model/Resultset/Simple.zep:343
let columnMap = this->columnMap;
if typeof columnMap != "array" {
return records;
}
let renamedRecords = [];
if typeof records == "array" {
for record in records {
let renamed = [];
for key, value in record {
if (typeof key === "string") {
/**
* Check if the key is part of the column map
*/
if unlikely !fetch renamedKey, columnMap[key] {
throw new ResultsetColumnNotInMap(key);
}
if typeof renamedKey == "array" {
if unlikely !fetch renamedKey, renamedKey[0] {
throw new ResultsetColumnNotInMap(key);
}
}
let renamed[renamedKey] = value;
}
}
/**
* Append the renamed records to the main array
*/
let renamedRecords[] = renamed;
}
}View on GitHub (pinned to b7419de9cd)
When it happens
Trigger: Thrown at phalcon/Mvc/Model/Resultset/Simple.zep:343 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/21599aea36709382.
Report an issue: GitHub.