You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My solution has been to rebake the Models using bin/cake bake model --update and compare with git 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:
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: