-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Show Database Association Incompatibilities #17429
Labels
Milestone
Comments
Refs: cakephp/bake#592 |
Should we close this given that this seems to be more a sattelite issue (plugins or custom solutions?) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
A few times now I have had where the belongsToManys don't match up and I get the error about it.
e.g. this using the join table was wrong due to foreign key mismatches.
My solution has been to rebake the Models using
bin/cake bake model --update
and compare withgit diff
.But given that there's a check routes, maybe there could be a
database check
as well? Would be helpful to run as like a CI command when running the PHP testing tools and to be told what to fix.Unsure if this exists in other frameworks.
CakePHP Version
4.5.0
The text was updated successfully, but these errors were encountered: