protected function filterOrCondition(array $data, $operator, $operands)
    {
        $parts = [];
        foreach ($operands as $operand) {
            if (is_array($operand)) {
                $parts[] = $this->filterCondition($data, $operand);
            }
        }

        if (empty($parts)) {
            return $data;
        }

        $data = [];
        foreach ($parts as $part) {
            foreach ($part as $row) {
                $pk = $row[$this->_query->primaryKeyName];
                $data[$pk] = $row;
            }
        }

        return $data;
    }
protected function filterOrCondition(array $data, $operator, $operands)
    {
        $parts = [];
        foreach ($operands as $operand) {
            if (is_array($operand)) {
                $parts[] = $this->filterCondition($data, $operand);
            }
        }

        if (empty($parts)) {
            return $data;
        }

        $data = [];
        foreach ($parts as $part) {
            foreach ($part as $row) {
                $pk = $row[$this->_query->primaryKeyName];
                $data[$pk] = $row;
            }
        }

        return $data;
    }
protected function filterOrCondition ( array $ data , $ operator , $ operands ) { $ parts = [ ] ; foreach ( $ operands as $ operand ) { if ( is_array ( $ operand ) ) { $ parts [ ] = $ this -> filterCondition ( $ data , $ operand ) ; } } if ( empty ( $ parts ) ) { return $ data ; } $ data = [ ] ; foreach ( $ parts as $ part ) { foreach ( $ part as $ row ) { $ pk = $ row [ $ this -> _query -> primaryKeyName ] ; $ data [ $ pk ] = $ row ; } } return $ data ; }
Applies 2 or more conditions using 'OR' logic.

@param array $data data to be filtered
@param string $operator operator
@param array $operands conditions to be united

@return array filtered data
Applies 2 or more conditions using OR logic .