Joining multiple tables in CakePHP using bindModel method
One of the most powerful features of CakePHP is the ability to link relational mapping provided by the model. In CakePHP, the links between models are handled through associations. The associations are defined in the models as hasOne, hasMany, belongsTo etc. It is possible to define deep relationships involving many tables and retrieve data. But CakePHP doesn’t always form a single query to associate many tables and retrieve records. Often it joins a couple of tables first and look in the other tables matching the IDs of the first query result. So a multiple join association is achieved through more than one queries. This method often troubles you when you want to do a search in fields across multiple tables.
