krot

yii2 get SQL

Apr 5th, 2018
99
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $hSQL=((new Query())
  2.             ->select(..
  3. $command=$hSQL->createCommand();
  4. echo $command->sql;
  5. $hSQL->createCommand()->getRawSql();
RAW Paste Data