0

我正在尝试从 CakePHP 中删除一个表。所有的表格都是用蛋糕烘焙功能创建的,我已经从所有模型中删除了表格。但是当我从数据库中删除表时,我收到一条错误消息:

Error: Database table channels_offers for model ChannelsOffer was not found.

Notice: If you want to customize this error message, create app/views/errors/missing_table.ctp

那么如何删除最初烘烤的桌子?

4

1 回答 1

3

好吧,看来您仍然有一个名为ChannelsOffer. 您需要向ChannelsOffer模型添加一个属性。这是一个例子

class ChannelsOffer extends AppModel {

    // this tells the model not to use a table, alternatively you could supply your 
    // own table name here.
    public $useTable = false;
于 2011-07-15T17:30:46.160 回答