/**
  * {@inheritdoc}
  */
 protected function addGroupByStatement()
 {
     parent::addGroupByStatement();
     if (!empty($this->groupingColumns)) {
         $this->config->offsetSetByPath('[source][query][groupBy]', implode(', ', $this->groupingColumns));
     }
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 protected function addWhereStatement()
 {
     parent::addWhereStatement();
     if (!empty($this->filters)) {
         $this->restrictionBuilder->buildRestrictions($this->filters, new GroupingOrmFilterDatasourceAdapter($this->qb));
     }
 }