src/PHPDish/Bundle/CoreBundle/EventListener/TopicListener.php
public function postPersist(TopicInterface $topic, LifecycleEventArgs $event)
    {
        $user = $topic->getUser();
        $this->handleUserTopicCount($user);
    }
public function postPersist(TopicInterface $topic, LifecycleEventArgs $event)
    {
        $user = $topic->getUser();
        $this->handleUserTopicCount($user);
    }
生成新数据之前
@param TopicInterface $topic
@param LifecycleEventArgs $event