Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sensei84 opened this issue Sep 2, 2021 · 1 comment
Open

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

sensei84 opened this issue Sep 2, 2021 · 1 comment

Comments

@sensei84
Copy link

sensei84 commented Sep 2, 2021

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
Copy link
Author

sensei84 commented Sep 3, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant