0
votes

I am trying to bake a model that uses a table called "forecast_counties". I cannot for the life of me get the automated bake process to use this table.

I've tried the following:

"cake bake all forecast_county"

"Fatal error: Class 'ForecastCounty' not found in ../cake/console/libs/bake.php on line 162"

"cake bake all ForecastCounty"  

"Fatal error: Class 'ForecastCounty' not found in ../cake/console/libs/bake.php on line 162"

I'm pretty sure the model names are supposed to be singular... why can't I get the forecast_counties table/model to bake?

1

1 Answers

0
votes

Try

cake bake all

Then select the model from the list you want to bake.

Alternatively you can do

cake bake all forecast_counties

You have to use the same name as that of the table whose model you wish to bake.