有一个查询我想在 Yii2 中转换成 ActiveQuery 模型:
查询:
SELECT * FROM commodity where ( code like "1122%" or code like "1111%" ) and ( subid = 19 or subid = 323 ) order by name asc
有型号:
class Commodity extends ActiveRecord{ ...}
我想要实现的格式,例如:
Commodity::find()->where()->andWhere()->all();
芜湖不芜