phalcon/cphalcon · error · Phalcon\Mvc\Model\Exceptions\ColumnNotInMap

Column '{column}' does not make part of the column map in '{

Error message

Column '{column}' does not make part of the column map in '{className}'

What it means

Error "Column '{column}' does not make part of the column map in '{className}'" thrown in phalcon/cphalcon.

Source

Thrown at phalcon/Mvc/Model.zep:924

            let columnMap = metaData->getColumnMap(this);
        } else {
            let columnMap = null;
        }

        for attribute in metaData->getAttributes(this) {
            // Try to find case-insensitive key variant
            if !isset columnMap[attribute] && Settings::get("orm.case_insensitive_column_map") {
                let attribute = self::caseInsensitiveColumnMap(
                    columnMap,
                    attribute
                );
            }

            // Check if we need to rename the field
            if typeof columnMap === "array" {
                if !fetch attributeField, columnMap[attribute] {
                    if unlikely !Settings::get("orm.ignore_unknown_columns") {
                        throw new ColumnNotInMap(attribute, get_class(this));
                    }

                    continue;
                }
            } else {
                let attributeField = attribute;
            }

            // The value in the array passed
            // Check if we there is data for the field
            if fetch value, dataMapped[attributeField] {
                // If white-list exists check if the attribute is on that list
                if typeof whiteList == "array" {
                    if !in_array(attributeField, whiteList) {
                        continue;
                    }
                }

View on GitHub (pinned to b7419de9cd)

When it happens

Trigger: Thrown at phalcon/Mvc/Model.zep:924 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/560a7e18b8aed114. Report an issue: GitHub.