获取包含所有参数的SQL语句
1 use app\models\Goods; 2 $query = Goods::find()->andWhere(["id" => 1])->one(); 3 $query->createCommand()->getRawSql();