src/ORM/Connect/DBQueryBuilder.php
protected function buildSelectQuery(SQLSelect $query, array &$parameters)
    {
        $sql  = $this->buildSelectFragment($query, $parameters);
        $sql .= $this->buildFromFragment($query, $parameters);
        $sql .= $this->buildWhereFragment($query, $parameters);
        $sql .= $this->buildGroupByFragment($query, $parameters);
        $sql .= $this->buildHavingFragment($query, $parameters);
        $sql .= $this->buildOrderByFragment($query, $parameters);
        $sql .= $this->buildLimitFragment($query, $parameters);
        return $sql;
    }
protected function buildSelectQuery(SQLSelect $query, array &$parameters)
    {
        $sql  = $this->buildSelectFragment($query, $parameters);
        $sql .= $this->buildFromFragment($query, $parameters);
        $sql .= $this->buildWhereFragment($query, $parameters);
        $sql .= $this->buildGroupByFragment($query, $parameters);
        $sql .= $this->buildHavingFragment($query, $parameters);
        $sql .= $this->buildOrderByFragment($query, $parameters);
        $sql .= $this->buildLimitFragment($query, $parameters);
        return $sql;
    }
protected function buildSelectQuery ( SQLSelect $ query , array & $ parameters ) { $ sql = $ this -> buildSelectFragment ( $ query , $ parameters ) ; $ sql .= $ this -> buildFromFragment ( $ query , $ parameters ) ; $ sql .= $ this -> buildWhereFragment ( $ query , $ parameters ) ; $ sql .= $ this -> buildGroupByFragment ( $ query , $ parameters ) ; $ sql .= $ this -> buildHavingFragment ( $ query , $ parameters ) ; $ sql .= $ this -> buildOrderByFragment ( $ query , $ parameters ) ; $ sql .= $ this -> buildLimitFragment ( $ query , $ parameters ) ; return $ sql ; }
Builds a query from a SQLSelect expression

@param SQLSelect $query The expression object to build from
@param array $parameters Out parameter for the resulting query parameters
@return string Completed SQL string
Builds a query from a SQLSelect expression