/** * Calculated the total count of the whole search result. * * @param QueryBuilder $query * @return int */ private function getTotalCount($query) { return $query->getConnection()->fetchColumn('SELECT FOUND_ROWS()'); }
/** * Calculated the total count of the whole search result. * * @param QueryBuilder $query * @return int */ private function getTotalCount($query) { return $query->getConnection()->fetchColumn('SELECT FOUND_ROWS()'); }