and always returns stdClass object
it works correctly in version 2.2.4 and works incorectly in all versions above that
$cluster = new \CouchbaseCluster($dsn);
$bucket = $cluster->openBucket($config['bucket'], $config['password']);
$query = \CouchbaseViewQuery::from('media_event', 'aggregate')
->reduce(true)
->group(true)
->range([$clientName, $from->format('Y-m-d')], [$clientName, $to->format('Y-m-d')], true);
$result = $bucket->query($query, true);
var_dump($result);
$result = $bucket->query($query, false);
var_dump($result);
produces:
object(stdClass)#2435 (1) {
["rows"]=>
array(0) {
}
}
object(stdClass)#2435 (1) {
["rows"]=>
array(0) {
}
}
but should be:
array(1) {
["rows"]=>
array(0) {
}
}
object(stdClass)#2435 (1) {
["rows"]=>
array(0) {
}
}