Advertisement
krot

yii2 get SQL

Apr 5th, 2018
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.13 KB | None | 0 0
  1. $hSQL=((new Query())
  2.             ->select(..
  3. $command=$hSQL->createCommand();
  4. echo $command->sql;
  5. $hSQL->createCommand()->getRawSql();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement