You should write a db action request getPoll()as a method in the polling model , so in your user controller you can just call $this->User->Poll->getPolls()to capture polls, and if the associations are configured correctly, $this->Event->Poll->getPolls()from your event controller.
For example, in your survey model:
public function getPoll($userId = null) {
return $this->find('all', array(..));
}
source
share