phalcon/cphalcon · error · Phalcon\Mvc\Model\MetaData\Exceptions\TableNotInDatabase
Table '{completeTable}' does not exist in database when dump
Error message
Table '{completeTable}' does not exist in database when dumping meta-data for {className} What it means
Error "Table '{completeTable}' does not exist in database when dumping meta-data for {className}" thrown in phalcon/cphalcon.
Source
Thrown at phalcon/Mvc/Model/MetaData/Strategy/Introspection.zep:89
let schema = model->getSchema(),
table = model->getSource();
/**
* Check if the mapped table exists on the database
*/
let readConnection = model->getReadConnection();
if unlikely !readConnection->tableExists(table, schema) {
if schema {
let completeTable = schema . "'.'" . table;
} else {
let completeTable = table;
}
/**
* The table not exists
*/
throw new TableNotInDatabase(completeTable, get_class(model));
}
/**
* Try to describe the table
*/
let columns = readConnection->describeColumns(table, schema);
if unlikely empty columns {
if schema {
let completeTable = schema . "'.'" . table;
} else {
let completeTable = table;
}
/**
* The table not exists
*/
throw new CannotObtainTableColumns(completeTable, get_class(model));View on GitHub (pinned to b7419de9cd)
When it happens
Trigger: Thrown at phalcon/Mvc/Model/MetaData/Strategy/Introspection.zep:89 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/027a943b2d18983b.
Report an issue: GitHub.