为什么TP5模型一对一关联select()不好使?

浏览:1414 发布日期:2016/09/18 分类:求助交流 关键字: tp5 一对一
$Accident = AccidentModel::where('acci_state',3)->field('id,acci_code,receId,station_id,address')->order('id desc')->find();
$Accident->rece;
$Accident->station;
$Accident = AccidentModel::where('acci_state',1)->field('id,acci_code,receId,station_id,address')->order('id desc')->select();
$Accident->rece;
$Accident->station;
为什么用find方法好使,用select就出现“Trying to get property of non-object”?
最佳答案
评论() 相关
后面还有条评论,点击查看>>