SQLSTATE[42S02]: Base table or view not found: 1146 Table 'beta711_pm_portal.legislacoes' doesn't exist 📋

Cake\Database\Exception\DatabaseException
Toggle Vendor Stack Frames
            [$config['schema'], $name] = explode('.'$name);
        }
        $table $this->_connection->getDriver()->newTableSchema($name);
        $this->_reflect('Column'$name$config$table);
        if (count($table->columns()) === 0) {
            throw new DatabaseException(sprintf('Cannot describe %s. It has 0 columns.'$name));
        }
        $connection $this->_driver->getConnection();
        try {
            $connection->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY$this->_bufferResults);
            $result $this->_statement->execute($params);
        } finally {
            $connection->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERYtrue);
        }

If you want to customize this error message, create templates/Error/error500.php