src/ORM/Connect/DBQueryBuilder.php
public function buildWhereFragment(SQLConditionalExpression $query, array &$parameters)
    {
        // Get parameterised elements
        $where = $query->getWhereParameterised($whereParameters);
        if (empty($where)) {
            return '';
        }

        // Join conditions
        $connective = $query->getConnective();
        $parameters = array_merge($parameters, $whereParameters);
        $nl = $this->getSeparator();
        return "{$nl}WHERE (" . implode("){$nl}{$connective} (", $where) . ")";
    }
public function buildWhereFragment(SQLConditionalExpression $query, array &$parameters)
    {
        // Get parameterised elements
        $where = $query->getWhereParameterised($whereParameters);
        if (empty($where)) {
            return '';
        }

        // Join conditions
        $connective = $query->getConnective();
        $parameters = array_merge($parameters, $whereParameters);
        $nl = $this->getSeparator();
        return "{$nl}WHERE (" . implode("){$nl}{$connective} (", $where) . ")";
    }
public function buildWhereFragment ( SQLConditionalExpression $ query , array & $ parameters ) { // Get parameterised elements $ where = $ query -> getWhereParameterised ( $ whereParameters ) ; if ( empty ( $ where ) ) { return '' ; } // Join conditions $ connective = $ query -> getConnective ( ) ; $ parameters = array_merge ( $ parameters , $ whereParameters ) ; $ nl = $ this -> getSeparator ( ) ; return "{$nl}WHERE (" . implode ( "){$nl}{$connective} (" , $ where ) . ")" ; }
Returns the WHERE clauses ready for inserting into a query.

@param SQLConditionalExpression $query The expression object to build from
@param array $parameters Out parameter for the resulting query parameters
@return string Completed where condition
Returns the WHERE clauses ready for inserting into a query .