public function getTopics() { $topicsCount = $this->em->getRepository('Newscoop\\NewscoopBundle\\Entity\\Topic')->countBy(); return $topicsCount; }