phalcon/cphalcon · error · BuilderColumnNotInMap
Column '{column}' isn't part of the column map
Error message
Column '{column}' isn't part of the column map What it means
Error "Column '{column}' isn't part of the column map" thrown in phalcon/cphalcon.
Source
Thrown at phalcon/Mvc/Model/Query/Builder.zep:768
);
let noPrimary = true,
primaryKeys = metaData->getPrimaryKeyAttributes(modelInstance);
if !empty primaryKeys {
if fetch firstPrimaryKey, primaryKeys[0] {
/**
* The PHQL contains the renamed columns if available
*/
if Settings::get("orm.column_renaming") {
let columnMap = metaData->getColumnMap(modelInstance);
} else {
let columnMap = null;
}
if typeof columnMap == "array" {
if unlikely !fetch attributeField, columnMap[firstPrimaryKey] {
throw new BuilderColumnNotInMap(firstPrimaryKey);
}
} else {
let attributeField = firstPrimaryKey;
}
/**
* Use a named bind parameter instead of embedding the value
* directly in the PHQL string. Embedding produces a unique
* PHQL string per ID value, causing unbounded growth of the
* internal PHQL cache in long-running processes.
*/
let this->bindParams["APK0"] = conditions,
conditions = this->autoescape(model) . "." . this->autoescape(attributeField) . " = :APK0:",
noPrimary = false;
}
}
/**View on GitHub (pinned to b7419de9cd)
When it happens
Trigger: Thrown at phalcon/Mvc/Model/Query/Builder.zep:768 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/5e4b0525edbec8c7.
Report an issue: GitHub.