how can i access method $this->someModel->find('all')
when im in different model form example:
class DevicesController extends AppController {
public function add(){
$departments = $this->Department->find('all', array(
'fields' => array('id', 'mac')
));
$this->set(compact('departments'));
.....
.....
}
right now there is error because $this
doesn't "see" Department
what i need to do to make it happen.