You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 4, 2020. It is now read-only.
使用以下关联查询
生成了以下sql
报错
1054 - Unknown column 'hw_homework.id' in 'where clause'
原因 在from语句后已重命名
hw_homework
表为homework_model
再子查询就会找不到
hw_homework
尝试过更换
withJoin()
位置,没有生效。使用
with()
代替withJoin()
,但没办法使用查询多个需要关联的模型。报错
Too few arguments to function think\db\Query::name(), 0 passed and exactly 1 expected
检查sql语句,生成如下
The text was updated successfully, but these errors were encountered: