phalcon/cphalcon · error · Phalcon\Mvc\Model\Query\Exceptions\PhqlColumnNotInMap
Column '{fieldName}' isn't part of the column map
Error message
Column '{fieldName}' isn't part of the column map What it means
Error "Column '{fieldName}' isn't part of the column map" thrown in phalcon/cphalcon.
Source
Thrown at phalcon/Mvc/Model/Query.zep:1056
break;
default:
let insertValue = new RawValue(
dialect->getSqlExpression(exprValue)
);
break;
}
let fieldName = fields[number];
/**
* If the user didn't define a column list we assume all the model's
* attributes as columns
*/
if automaticFields && typeof columnMap == "array" {
if unlikely !fetch attributeName, columnMap[fieldName] {
throw new PhqlColumnNotInMap(fieldName);
}
} else {
let attributeName = fieldName;
}
let insertValues[attributeName] = insertValue;
}
/**
* Get model from the Models Manager
*/
let insertModel = manager->load(modelName);
insertModel->assign(insertValues);
/**
* Call 'create' to ensure that an insert is performed
* Return the insert statusView on GitHub (pinned to b7419de9cd)
When it happens
Trigger: Thrown at phalcon/Mvc/Model/Query.zep:1056 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/f08df134ab0c2b3c.
Report an issue: GitHub.