Ejemplo n.º 1
0
 /**
  * Counts rows on the table with the given clauses.
  *
  * @param Array $clauses
  * @return void
  * @author Dan Cox
  */
 public function countRows(array $clauses = array())
 {
     $qb = $this->database->setEntity($this->entity)->queryBuilder();
     $qb->select('count(u)');
     $this->total = $qb->getQuery()->getSingleScalarResult();
 }