/** * Gets the number of entities presented in the database according to the current setting * of EntityQuery * @return int */ function getCount() { return $this->entity->getDao()->getCell($this->makeSelect(Projection::rowCount())); }