public function groupBy() { // We override this function because we use GROUP functions in the // SELECT clause, therefore we have to group by *something*. If the // user doesn't select a column to group by, we should group by participant id. parent::groupBy(); if (empty($this->_groupBy)) { $this->_groupBy = "GROUP BY {$this->_aliases['civicrm_participant']}.id"; } }
public function groupBy() { // We override this function because we use GROUP functions in the // SELECT clause, therefore we have to group by *something*. If the // user doesn't select a column to group by, we should group by participant id. parent::groupBy(); if (empty($this->_groupBy)) { $this->_groupBy = CRM_Contact_BAO_Query::getGroupByFromSelectColumns($this->_selectClauses, "{$this->_aliases['civicrm_participant']}.id"); } }