You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Phalcon\Paginator\Adapter\QueryBuilder Cannot use groupBy () 。Otherwise page is error
i do
$count="count(*) as count";
if(!empty($builder->getGroupBy ())){
$count='count(DISTINCT '.$builder->getGroupBy ().') as count';
}
$totalItems=$builder->columns($count)
->groupBy(null)->getQuery()->execute()->toArray();
$this->total_items=current(current($totalItems));
The text was updated successfully, but these errors were encountered:
Phalcon\Paginator\Adapter\QueryBuilder Cannot use groupBy () 。Otherwise page is error
i do
$count="count(*) as count";
if(!empty($builder->getGroupBy ())){
$count='count(DISTINCT '.$builder->getGroupBy ().') as count';
}
$totalItems=$builder->columns($count)
->groupBy(null)->getQuery()->execute()->toArray();
$this->total_items=current(current($totalItems));
The text was updated successfully, but these errors were encountered: