i am working on a cakephp test project, but im stuck for sometime now on getting the information from another table which is not directly related to the present model im retrieving the data.
the scenario is this:(please see image https://i.sstatic.net/liFmk.png) all the green tables are connected to each other, AC belongsTO {AA, AB} i have the aa_id.
How can i get the data from table AD using cakephp "find".
ie:
$params = array('conditions' => array('...' => $aa_id));
$this->aa->ab-ac->find('all',$params);