I have a table called entries
with an associated model called Entry
. I stepped through the Blog-tutorial on the CakePHP website. It states that the table-name does not need to be specified because it is computed from the models name. ( Post => posts
).
I doubt CakePHP knows that Entry
is a non-conform noun when it comes to its plural form. So how can I set the table my model uses? I think CakePHP would otherwise try to access the table entrys
.
The answer to your question is to specify it inside your model.
$useTable = 'yourtablename'
Although, as Wooble noted, your doubts are wrong.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With