You should use joins that way. You should:
- Bake the model table & entity (
bin/cake bake model BoutiquesProduits) - Make sure the
Produitshas ahasManyrelationship (see the book) - After the find use innerJoinWith or matching
Matching does select data from the associated table, if you use innerJoin you have to manually select the columns you’re going to use.