21,886
社区成员
发帖
与我相关
我的任务
分享
$c = new CDbCriteria();
$c->join = "left join (select goods_id, group_concat(name) as `tags` from goods_tag group by goods_id) `tag` on tag.goods_id=t.id";
$res = Goods::model()->with( 'brand' )->findAll( $c );