protected function createTopic($board, $title) { $topic = new Topic(); $topic->setBoard($board); $topic->setTitle($title); $topic->setCachedViewCount(0); $topic->setCachedReplyCount(0); $topic->setSticky(false); $topic->setClosed(false); $topic->setDeleted(false); return $topic; }