{"record":{"id":"027a943b2d18983b","repo":"phalcon/cphalcon","slug":"table-completetable-does-not-exist-in-database","errorCode":null,"errorMessage":"Table '{completeTable}' does not exist in database when dumping meta-data for {className}","messagePattern":"Table '(.+?)' does not exist in database when dumping meta-data for (.+?)","errorType":"exception","errorClass":"Phalcon\\Mvc\\Model\\MetaData\\Exceptions\\TableNotInDatabase","httpStatus":null,"severity":"error","filePath":"phalcon/Mvc/Model/MetaData/Strategy/Introspection.zep","lineNumber":89,"sourceCode":"        let schema = model->getSchema(),\n            table  = model->getSource();\n\n        /**\n         * Check if the mapped table exists on the database\n         */\n        let readConnection = model->getReadConnection();\n\n        if unlikely !readConnection->tableExists(table, schema) {\n            if schema {\n                let completeTable = schema . \"'.'\" . table;\n            } else {\n                let completeTable = table;\n            }\n\n            /**\n             * The table not exists\n             */\n            throw new TableNotInDatabase(completeTable, get_class(model));\n        }\n\n        /**\n         * Try to describe the table\n         */\n        let columns = readConnection->describeColumns(table, schema);\n\n        if unlikely empty columns {\n            if schema {\n                let completeTable = schema . \"'.'\" . table;\n            } else {\n                let completeTable = table;\n            }\n\n            /**\n             * The table not exists\n             */\n            throw new CannotObtainTableColumns(completeTable, get_class(model));","sourceCodeStart":71,"sourceCodeEnd":107,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Mvc/Model/MetaData/Strategy/Introspection.zep#L71-L107","documentation":"Error \"Table '{completeTable}' does not exist in database when dumping meta-data for {className}\" thrown in phalcon/cphalcon.","triggerScenarios":"Thrown at phalcon/Mvc/Model/MetaData/Strategy/Introspection.zep:89 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"}