表
上传字段
id|user_id|link|status
Upload_acc 字段
id|user_id|name|password
上传ACC模型
var $table = 'Upload';
var $has_one = array(
'Upload_acc'=>array('class'=>'Upload_acc','other_field'=>'upload','join_table'=>'Upload_acc'),
);
如何使用 dm 进行此查询?
SELECT * FROM Upload LEFT JOIN Upload_acc ON Upload.user_id = Upload_acc.user_id WHERE Upload.status=0
我看了看找不到文件。