Ejemplo n.º 1
0
 /**
  * Применяет группировку по первичному ключу коллекции
  * @param ISelectBuilder $selectBuilder
  * @return $this
  */
 protected function applyGroupByCollectionPk(ISelectBuilder $selectBuilder)
 {
     $sourceAlias = $this->collection->getSourceAlias();
     $column = $sourceAlias . self::FIELD_SEPARATOR . $this->collection->getIdentifyField()->getColumnName();
     $selectBuilder->groupBy($column);
     return $this;
 }