Exemplo n.º 1
0
 /**
  * @see Collection::count()
  */
 public function count(array $query = array(), $limitOrOptions = 0, $skip = 0)
 {
     $options = is_array($limitOrOptions) ? array_merge(array('limit' => 0, 'skip' => 0), $limitOrOptions) : array('limit' => $limitOrOptions, 'skip' => $skip);
     $this->log(array('count' => true, 'query' => $query, 'options' => $options, 'limit' => $options['limit'], 'skip' => $options['skip']));
     return parent::count($query, $options);
 }