{"record":{"id":"0792441065cbcbdf","repo":"phalcon/cphalcon","slug":"column-column-isn-t-part-of-the-column-map-in","errorCode":null,"errorMessage":"Column '{column}' isn't part of the column map in '{className}'","messagePattern":"Column '(.+?)' isn't part of the column map in '(.+?)'","errorType":"exception","errorClass":"Phalcon\\Mvc\\Model\\Exceptions\\ColumnNotInTableMap","httpStatus":null,"severity":"error","filePath":"phalcon/Mvc/Model.zep","lineNumber":1566,"sourceCode":"\n        /**\n         * Create a condition from the primary keys\n         */\n        for primaryKey in primaryKeys {\n            /**\n             * Every column part of the primary key must be in the bind data\n             * types\n             */\n            if unlikely !fetch bindType, bindDataTypes[primaryKey] {\n                throw new BindTypeNotDefined(primaryKey, get_class(this));\n            }\n\n            /**\n             * Take the column values based on the column map if any\n             */\n            if typeof columnMap == \"array\" {\n                if unlikely !fetch attributeField, columnMap[primaryKey] {\n                    throw new ColumnNotInTableMap(primaryKey, get_class(this));\n                }\n            } else {\n                let attributeField = primaryKey;\n            }\n\n            /**\n             * If the attribute is currently set in the object add it to the\n             * conditions\n             */\n            if unlikely !fetch value, this->{attributeField} {\n                throw new PrimaryKeyAttributeNotSet(attributeField, get_class(this));\n            }\n\n            /**\n             * Escape the column identifier\n             */\n            let values[] = value,\n                conditions[] = writeConnection->escapeIdentifier(primaryKey) . \" = ?\",","sourceCodeStart":1548,"sourceCodeEnd":1584,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Mvc/Model.zep#L1548-L1584","documentation":"Error \"Column '{column}' isn't part of the column map in '{className}'\" thrown in phalcon/cphalcon.","triggerScenarios":"Thrown at phalcon/Mvc/Model.zep:1566 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b7419de9cd0a8a3f48441ead84c9f8415d463e25","analyzedAt":"2026-08-21T06:21:18.811Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}