$ry
->alias('ry')
->field('ry.mingcheng')
->with('school.jibie')
->withCount('info')
->select();
朋友们,我的代码如上!
现象:
设置表别名后,withCount提示Column not found: 1054 Unknown column 'jkp_rongyu.id' in 'where clause'
jkp_rongyu是被设置别名的原来表名。
问题:
在withcount中怎么使用别名。
我还需要用到field,在field中怎么能让with和withcount结果也显示出来?