Closed Manuel1948 closed 1 month ago
Foreign key names are generated with Inflector::singular
. You'll need more inflection rules. See https://github.com/cakephp/bake/blob/976dbe36a42feaf6d32163954729220e5cc21f3f/src/Command/ModelCommand.php#L600-L620 and https://github.com/cakephp/cakephp/blob/c708617aa89b8aa6145c5296eb7113033d37a6ef/src/Core/ConventionsTrait.php#L60
Foreign key names are generated with
Inflector::singular
. You'll need more inflection rules. See https://github.com/cakephp/bake/blob/976dbe36a42feaf6d32163954729220e5cc21f3f/src/Command/ModelCommand.php#L600-L620 and
thank you, didn't recognized it because there is not so much documentation about the inflectors.
Description
My inflector rules (in bootstrap(_cli).php):
The baked table of KinderKunden is correct, but each of them has a wrong (plural) belongsToMany-foreignKey for example:
Kinder:
and
Kunden:
It has to be kind_id and kunde_id.
CakePHP Version
5.0.8
PHP Version
8.3