src/PHPDish/Bundle/CoreBundle/DataFixtures/ORM/TopicFixtures.php
protected function createTopic($title, $body)
    {
        $manager = $this->getTopicManager();
        $topic = $manager->createTopic($this->getReference('general-user'));
        $topic->setUpdatedAt(Carbon::now())
            ->setTitle($title)
            ->setOriginalBody($body)
            ->setThreads([$this->getReference('thread-share')])
            ->setEnabled(true);
        $manager->saveTopic($topic);
    }
protected function createTopic($title, $body)
    {
        $manager = $this->getTopicManager();
        $topic = $manager->createTopic($this->getReference('general-user'));
        $topic->setUpdatedAt(Carbon::now())
            ->setTitle($title)
            ->setOriginalBody($body)
            ->setThreads([$this->getReference('thread-share')])
            ->setEnabled(true);
        $manager->saveTopic($topic);
    }
创建话题.

@param string $title
@param string $body