Esempio n. 1
0
 /**
  * Returns the number of objects in the result
  *
  * @return integer The number of matching objects
  * @api
  */
 public function count()
 {
     if (is_array($this->queryResult)) {
         return count($this->queryResult);
     } else {
         return $this->persistenceManager->getObjectCountByQuery($this->query);
     }
 }