0
我想再生一個DB模式的變化畢竟腳手架,並獲得異常後CakePHP的烘烤錯誤SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db01.address_types' doesn't exist in [/.../vendor/cakephp/cakephp/src/Database/Schema/Collection.php, line 130]
架構更改
address_types
前面有一張桌子,但已改爲枚舉命名address_type
,使表不見了,它甚至變得錯誤的多元化!蛋糕/烘焙從哪裏得到舊的模式?
您需要在更改模式後刪除緩存('tmp/cache/models')。 – ndm