1

这是我的调试 $this->Subjob->find('all')

(int) 0 => array(
    'Subjob' => array(
        'id' => '1',
        'job_id' => '2',
        'subjob_title' => 'mastersubsjob',
    ),
    'Job' => array(
        'id' => '2',
        'content_id' => '2',
        'Content' => array(
            'id' => '2',
            'content_type_id' => '2',
            'content_title' => 'masterdata' //

我设置了 recursive = 2 并且我想通过 content_title 搜索 Subjob,这是我的控制器

 $conditions[] = array('Content.content_title LIKE'=>'%'.$this->data['Subjob']['content_title'].'%'); 

$this->set('subjobs', $this->paginate($conditions));

但我在'where子句'中得到“数据库错误未知列'Content.content_title'”。

对不起,我的英语不好。

4

0 回答 0