src/PHPDish/Bundle/ForumBundle/Service/TopicManager.php
public function findHotTopics(\DateTime $date, $limit)
    {
        $criteria = Criteria::create()->where(Criteria::expr()->gt('createdAt', $date))
            ->andWhere(Criteria::expr()->eq('enabled', true))
            ->orderBy(['commentCount' => 'desc', 'createdAt' => 'desc'])
            ->setMaxResults($limit);

        return $this->findTopics($criteria);
    }
public function findHotTopics(\DateTime $date, $limit)
    {
        $criteria = Criteria::create()->where(Criteria::expr()->gt('createdAt', $date))
            ->andWhere(Criteria::expr()->eq('enabled', true))
            ->orderBy(['commentCount' => 'desc', 'createdAt' => 'desc'])
            ->setMaxResults($limit);

        return $this->findTopics($criteria);
    }
{@inheritdoc}