How to not follow the conventions?


Hello the community,

CAKEPHP 3.4 - In my db, i have some columns’ names with “_” but sometimes it’s not a way to make an association, just to make it easier to read. It causes some issues with bake, telling me " You should explicitly specify the “propertyName” option"
But i don’t get how i can indicate when the name of a column is NOT to define an association ? For example to say the association only works for “_id”

I searched in the cookbook but it’s not clear… Can you help me please ?

Thanks a lot !!!


If you want to use bake, you must follow the conventions.
Otherwise you have to create the file from scratch.

Bake a really simple table (3 columns, id, some int, some varchar/date, etc) and use that as a template