$sb = new Select();
$sb
->select('u.name')
->from('users', 'u')
->groupBy('u.lastLogin');
->addGroupBy('u.createdAt')
public addGroupBy ( variadic |
||
$groupBy | variadic |
the grouping expression |
return | instance |
public function addGroupBy(...$groupBy)
{
if (empty($groupBy)) {
return $this;
}
return $this->addQueryPart('groupBy', $groupBy, true);
}