Yii2 raw SQL

    0

    0

    yii2mysql

    This code outputs the following:

    SELECT id, name FROM users;

    var_dump($query->prepare(Yii::$app->db->queryBuilder)->createCommand()->rawSql);
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.