Hey guys I am new to CakePHP and I am having a problem while joining two tables.
$options['joins'] = array(
array('table' => 'options',
'alias' => 'Options',
'type' => 'LEFT',
'fields' => array('Question.question', 'Options.option'),
'conditions' => array(
'Options.question_id = Question.id'))
);
$this->set('qq',$this->Question->find('all',$options));
I am getting only the fields of question table and not the fields of options table. How do I get the fields of options table also?
try to bind table.
According to your situation.
Read More On