I’m using
$dataProvider = new SqlDataProvider([
'sql' => $SQL,
'pagination' => false,
'params' => $params,
]);
Is there a way to get the generate SQL Statement that Yii uses based on the sql and params?