如何使用 Transaction.who_pay_fee_1,2,3 字段获取 (UserTransactionType.name) 的名称。
'user_transaction_type_id' 运行良好,但如何让其余字段正常工作:(
//Transaction Model
public $belongsTo = array(
'UserTransactionType' => array(
'className' => 'UserTransactionType',
'foreignKey' => 'user_transaction_type_id',
'conditions' => '',
'fields' => '',
'order' => ''
),
//UserTransactionType Model
public $hasMany = array(
'Transaction' => array(
'className' => 'Transaction',
'foreignKey' => 'user_transaction_type_id',
'dependent' => false,
))