src/ORM/Connect/DBQueryBuilder.php
public function buildHavingFragment(SQLSelect $query, array &$parameters)
    {
        $having = $query->getHavingParameterised($havingParameters);
        if (empty($having)) {
            return '';
        }

        // Generate having, considering parameters present
        $connective = $query->getConnective();
        $parameters = array_merge($parameters, $havingParameters);
        $nl = $this->getSeparator();
        return "{$nl}HAVING (" . implode("){$nl}{$connective} (", $having) . ")";
    }
public function buildHavingFragment(SQLSelect $query, array &$parameters)
    {
        $having = $query->getHavingParameterised($havingParameters);
        if (empty($having)) {
            return '';
        }

        // Generate having, considering parameters present
        $connective = $query->getConnective();
        $parameters = array_merge($parameters, $havingParameters);
        $nl = $this->getSeparator();
        return "{$nl}HAVING (" . implode("){$nl}{$connective} (", $having) . ")";
    }
public function buildHavingFragment ( SQLSelect $ query , array & $ parameters ) { $ having = $ query -> getHavingParameterised ( $ havingParameters ) ; if ( empty ( $ having ) ) { return '' ; } // Generate having, considering parameters present $ connective = $ query -> getConnective ( ) ; $ parameters = array_merge ( $ parameters , $ havingParameters ) ; $ nl = $ this -> getSeparator ( ) ; return "{$nl}HAVING (" . implode ( "){$nl}{$connective} (" , $ having ) . ")" ; }
Returns the HAVING clauses ready for inserting into a query.

@param SQLSelect $query The expression object to build from
@param array $parameters Out parameter for the resulting query parameters
@return string
Returns the HAVING clauses ready for inserting into a query .