我有名为Place和Category的模型,它们使用 HABTM 关系连接。现在,当我从Place读取特定字段时,我会在结果中得到额外的字段,如下所示。
array(
'Place' => array(
'id' => '8'
),
'Category' => array(
(int) 0 => array(
'id' => '2',
'CategoriesPlace' => array(
'id' => '673',
'place_id' => '8',
'category_id' => '2'
)
),
(int) 1 => array(
'id' => '3',
'CategoriesPlace' => array(
'id' => '674',
'place_id' => '8',
'category_id' => '3'
)
),
(int) 2 => array(
'id' => '5',
'CategoriesPlace' => array(
'id' => '675',
'place_id' => '8',
'category_id' => '5'
)
)
)
)
我不希望显示这个CategoriesPlace数组。知道怎么做吗?