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
I guess this is a feature which was introduced recently. So if you e.g. have a table articles and a field image_id, the generated ArticlesTable no longer has a relation to Images, if there is not actually an images table in the database.
Is there any possibility to generate the relation code anyway, e.g. by using a flag when running the command? Could be something like bin/cake bake model users --no-table-check or something like that.
That would be great to opt in into the previous behaviour again.
Bake Version
2.8.2
PHP Version
4.4.11, php 8.1.1
The text was updated successfully, but these errors were encountered:
I think you can make a PR that would allow for this.
It is unlikely someone else would come forward in a reasonable time frame for such specific requests.
Description
I guess this is a feature which was introduced recently. So if you e.g. have a table
articles
and a fieldimage_id
, the generatedArticlesTable
no longer has a relation toImages
, if there is not actually animages
table in the database.This "bug" was practical for my assets plugin which uses these "fake relations", as described here:
https://github.com/brandcom/cakephp-assets/tree/master#use-alibi-names
Is there any possibility to generate the relation code anyway, e.g. by using a flag when running the command? Could be something like
bin/cake bake model users --no-table-check
or something like that.That would be great to opt in into the previous behaviour again.
Bake Version
2.8.2
PHP Version
4.4.11, php 8.1.1
The text was updated successfully, but these errors were encountered: