cakephp-version icon indicating copy to clipboard operation
cakephp-version copied to clipboard

Get Error: Table class for alias `versions` could not be found.

Open sensei84 opened this issue 4 years ago • 1 comments

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

sensei84 avatar Sep 02 '21 16:09 sensei84

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

sensei84 avatar Sep 03 '21 07:09 sensei84