Answer the question
In order to leave comments, you need to log in
How can I intercept the request created by Yii::$app->db->createCommand()?
When executing queries via new Query(), you can intercept and view the request being sent via:
$query->prepare(Yii::$app->db->queryBuilder)->createCommand()->rawSql
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question