Hello,
I have a legacy database and I would like to bake some tables.
One of the tables has the name “tcnt” but I want that the Bake call it as “countries”.
What I am trying to do:
![image](https://canada1.discourse-cdn.com/flex029/uploads/cakephp/original/2X/c/cd39ec96a190b5b307d384f805a0f09afb0735c7.png)
But it always returns an error: “Error: Unknown option table
.”
I saw it as an example here:
Thank you.
BR
Dante
If i remember right you have to bake the model first in this case and then you can bake the rest like
cake bake model Countries --table tcnt
I don’t think table is an option for all
1 Like
I will test it. Thanks.
Please, could you tell me what do you means with “rest”? ![:slight_smile: :slight_smile:](https://emoji.discourse-cdn.com/twitter/slight_smile.png?v=12)
“… then you can bake the rest like cake bake model …”