0

我不明白 FOSMessageBundle ( https://github.com/FriendsOfSymfony/FOSMessageBundle ) 中的线程类是什么。

你能解释一下它代表什么吗?

4

2 回答 2

2

线程就像一个对话,它包含相同参与者之间的消息列表。


仔细查看模型类将帮助您了解它是如何工作的:

线程包含Message的集合以及关于线程的重要元数据

/**
 * Messages contained in this thread.
 *
 * @var Collection|MessageInterface[]
 */
protected $messages;
/**
 * Thread metadata.
 *
 * @var Collection|ThreadMetadata[]
 */
protected $metadata;

/**
 * Users participating in this conversation.
 *
 * @var Collection|ParticipantInterface[]
 */
protected $participants;
于 2017-05-06T03:46:30.657 回答
-1

线程包含不同参与者的消息,例如论坛

于 2019-02-09T15:10:04.690 回答