public function _getSql()
    {
        $sql = '';
        $params = [];
        try {
            list($sql, $params) = $this->getSqlCompiler(BaseOrm::getDbConnection())->asSql();
        } catch (OrmException $e) {
        }

        $sql = str_replace('?', '%s', $sql);

        return vsprintf($sql, $params);
    }
public function _getSql()
    {
        $sql = '';
        $params = [];
        try {
            list($sql, $params) = $this->getSqlCompiler(BaseOrm::getDbConnection())->asSql();
        } catch (OrmException $e) {
        }

        $sql = str_replace('?', '%s', $sql);

        return vsprintf($sql, $params);
    }
public function _getSql ( ) { $ sql = '' ; $ params = [ ] ; try { list ( $ sql , $ params ) = $ this -> getSqlCompiler ( BaseOrm :: getDbConnection ( ) ) -> asSql ( ) ; } catch ( OrmException $ e ) { } $ sql = str_replace ( '?' , '%s' , $ sql ) ; return vsprintf ( $ sql , $ params ) ; }
Makes a the query return the sql to be executed.

@return string
Makes a the query return the sql to be executed .