Fetching data from the database takes a lot time process. Eventually when you need to combine multiple tables in order to fetch the data, reducing database calls becomes very meaningful.
Although in CakePhp's model, by default if the association between various models either it be hasOne or belongsTo, hasMany can be done using find statement, as CakePHP will automatically use left joins and so with the sql statements for performing the DB calls.
Here is not the end….Read full blog at our highly specific C, Java, Javascript, iPhone, android,PHP developer forum about the topic described above "Write a Join Query Across Multiple Tables in CakePHP". You can also learn much more about different programming technologies and can enhance your tech skills.
No comments:
Post a Comment