/** * Returns the total number of entries from all the feeds. * * @return int */ public function getCountTotalEntries() { if ($this->feeds->isEmpty()) { return 0; } /** @var FeedEntryRepository $feedEntryRepository */ $feedEntryRepository = $this->em->getRepository('Phraseanet:FeedEntry'); return $feedEntryRepository->countByFeeds($this->feeds->getKeys()); }
/** * @inheritdoc */ public function removeFeed(Feed $feeds) { $this->feeds->removeElement($feeds); }