Description
When using the the group function, both of the options 'group' and 'group_level' are set, when actually only one of them should be set at any time (https://github.com/couchbaselabs/php-couchbase/blob/master/stub/CouchbaseViewQuery.class.php#L199):
if ($group_level >= 0)
{ $this->options['group'] = 'false'; $this->options['group_level'] = '' . $group_level; }else
{ $this->options['group'] = 'true'; $this->options['group_level'] = '0'; }Instead of setting 'group' to false or 'group_level' to 0, these values need to be unset, or the following error is raised:
'query_parse_error: Query parameter `group_level` is not compatible with `group`'