I want to print query:
$demo = Demo::find()->all();
I want to see converted SQL query with parameters:
createCommand()->getRawSql();
is showing me an error message:
yii2 Call to a member function createCommand() on a non-object
Please help me to see the actual SQL query.