作成関係の使用法は何ですか
var $belongsTo = array(
'UserType' => array(
'className' => 'UserType',
'foreignKey' => 'user_type_id',
'conditions' => '',
'fields' => '',
'order' => ''
)
);
//The Associations below have been created with all possible keys, those that are not needed can be removed
var $hasMany = array(
'UserOpenid' => array(
'className' => 'UserOpenid',
'foreignKey' => 'user_id',
'dependent' => true)
);
「belongsTo」という意味で作成したテーブルを「hasMany」に追加するとどうなりますか? エラーが発生します。ケーキはモデルで指定された関係をどのように使用しますか?