Get Error: Table class for alias `versions` could not be found.
sensei84 opened this issue · comments
Dario Marino commented
Hi,
I installed the plugin:dev-master in an environment with cakephp 4.2.8 and php 7.4 and after update an entities receive this error: Table class for alias versions
could not be found.
I followed the readme for installation and configuration. Also I tried to create the table class using the cake bake model but I always get the same error.
Did I do something wrong ?
Thanks
Dario Marino commented
I solved it by creating the versions model via bin / cake bake and inserting in the behavior configuration $this->addBehavior ('Josegonzalez / Version.Version', ['versionTable' => 'Versions', 'versionField' => 'version_id' ]);
Thanks