我有一个名为 with 的模型与andVoicenote
有belongsTo
关系。当我执行以下操作时:Fonyker
ActivitySource
function admin_index(){
$this->layout = 'admin';
$this->Voicenote->recursive = 2;
$fields = array(
'Voicenote.id',
'Voicenote.title',
'Voicenote.created',
'Voicenote.duration',
'Voicenote.public',
);
$this->paginate = array(
'fields' => $fields,
'limit' => 20,
'order' => array('id' => 'ASC')
);
$result = $this->paginate('Voicenote');
pr($result);
$this->set('result', $result);
}
结果数组没有Fonyker
and ActivitySource
,关于可能发生什么的任何想法?
[0] => Array
(
[Voicenote] => Array
(
[id] => 1
[title] => CFRFA5KBLPJZP79B2PG8XH8DFSMB8G
[created] => 2011-03-09 00:00:00
[duration] => 23868
[public] => 0
)
[Fonyker] => Array
(
)
[ActivitySource] => Array
(
)
此外,当我尝试使用unbindModel()
和取消绑定所有内容时Fonyker
,ActivitySource
它们甚至不会显示为空数组。