예제 #1
0
 /**
  * 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()');
 }