请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

正在回答 回答被采纳积分+3

2回答

粉肠阿辰 2019-04-01 15:14:04

查询方法里别加空格

比如本节里:

$product = self::with('imgs,properties')
   ->find($id);

self::with('')中的查询字段加空格就会报你这样的错误

// 比如

$product = self::with(' imgs,properties')
   ->find($id);

// 或者

$product = self::with('imgs, properties')
   ->find($id);

0 回复 有任何疑惑可以回复我~
7七月 2019-03-20 23:56:02

从这个信息只能看出,img是不存在的。至于代码怎么写错的,还需要调试呀。可以对下源码看看。

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信