Created
January 16, 2017 11:05
-
-
Save cagartner/2d96d6176352f7204981db0db166f6b2 to your computer and use it in GitHub Desktop.
Get Raw Sql in Yii2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$query = Model::findAll(); | |
var_dump($query->createCommand()->rawSql); exit; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment