After a few weeks looking and searching for the right way how to do the query  at last I found the answer. I have to follow the tutorial which is Multiple relation to the same model. This thing usually being used if there are cases where a Model has more than one relation with another Model which is same like my situation as I have 2 relations from the same model. This tutorial can be found in CakePHP 2.X Cookbook. Here is the link :

The query was already done but I faced another problem with the View file. I do some studies and follow a few tutorials but it still not working. After a few days, I have figured it out where is the problem but still do not find the answer how to fix it.  I will continue to fix it after coming back from the holiday.




Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.