yii2 打印sql语句

echo $temp_chat_query->createCommand()->getRawSql();
原文地址:https://www.cnblogs.com/lyy-php/p/4974429.html