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
The answer to your question is to specify it inside your model.
$useTable = 'yourtablename'
Although, as Wooble noted, your doubts are wrong.
Cakephp 3, use this instead:
https://book.cakephp.org/3.0/en/orm/table-objects.html
class MyTable extends Table
{
public function initialize(array $config)
{
parent::initialize($config);
$this->setTable('my_table');
$this->setAlias('MyTable');
}
}