H
H
HellWalk2017-09-22 13:14:12
Yii
HellWalk, 2017-09-22 13:14:12

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

Is it possible to intercept the SQL query created by Yii::$app->db->createCommand() in some similar way?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2017-09-22
@HellWalk

Yii::$app->db->createCommand()->rawSql

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question