52 $qb->select(
'COUNT(*)');
54 $qb->addSelect(
'COUNT(*)');
57 $qb->from($this->handler->table, null);
66 }
catch (\Exception $e) {
71 if ($groupby ==
false) {
99 $groupby_key = $this->handler->keyName;
101 if ($groupby =
$criteria->getGroupby()) {
102 $groupby_key = $groupby;
105 $qb->select($groupby_key)
106 ->addSelect(
'COUNT(*)')
107 ->from($this->handler->table, null);
getCounts(CriteriaElement $criteria=null)
getCount(CriteriaElement $criteria=null)