/** * Returns the number of objects in the result * * @return integer The number of matching objects * @api */ public function count() { if ($this->numberOfRows === null) { if (is_array($this->rows)) { $this->numberOfRows = count($this->rows); } else { $this->numberOfRows = $this->query->count(); } } return $this->numberOfRows; }
/** * Returns the number of objects in the result * * @return integer The number of matching objects * @api */ public function count() { return $this->query->count(); }