我不明白 FOSMessageBundle ( https://github.com/FriendsOfSymfony/FOSMessageBundle ) 中的线程类是什么。
你能解释一下它代表什么吗?
我不明白 FOSMessageBundle ( https://github.com/FriendsOfSymfony/FOSMessageBundle ) 中的线程类是什么。
你能解释一下它代表什么吗?
线程就像一个对话,它包含相同参与者之间的消息列表。
仔细查看模型类将帮助您了解它是如何工作的:
/**
* 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;
线程包含不同参与者的消息,例如论坛