我正在尝试从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
那么我如何删除最初烘焙的表?
答案 0 :(得分:4)
好吧,您似乎还有一个名为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;