$model->find()->createCommand()->getRawSql(); $query = Salesorder::find()->where(['order_id'=>[1,2,3,4]])->select(['order_id']);$commandQuery = clone $query; $commandQuery->createCommand()->getRawSql();
2023-12-24
2023-08-01
2023-04-21
2022-02-21
2022-02-16