如何尝试这样,我已经像这样写了ItemsTable.php
public function initialize(array $config) {
$this->belongsTo('Categories', [
'className' => 'Item',
'foreignKey' => 'cid',
'propertyName' => 'name'
]);
}
如何显示类别名称而不是Cid
?