public function executeForum() { $this->setForumVars(); $this->topic_pager = $this->forum->getTopicsPager($this->getRequestParameter('page', 1), sfConfig::get('app_sfSimpleForumPlugin_max_per_page', 10)); $this->topics = $this->topic_pager->getResults(); if (sfConfig::get('app_sfSimpleForumPlugin_count_views', true) && $this->getUser()->isAuthenticated()) { // FIXME: When Propel can do a right join with multiple on conditions, merge this query with the pager's one $this->topics = sfSimpleForumTopicPeer::setIsNewForUser($this->topics, sfSimpleForumTools::getConnectedUserId()); } }