コード例 #1
0
 public function __construct(User $user, MessagesFacade $messagesFacade)
 {
     parent::__construct($user, $messagesFacade);
     $this->query = new SentMessagesQuery();
     $this->query->withAuthor(['id', 'username', 'role'])->byAuthor($user)->onlyActive()->withoutSystemMessages();
 }
コード例 #2
0
 public function __construct(User $user, MessagesFacade $messagesFacade)
 {
     parent::__construct($user, $messagesFacade);
     $this->query = new ReceivedMessagesQuery();
     $this->query->byRecipient($user)->onlyActive()->findReadMessages()->includingMessageAuthor(['id', 'username', 'role']);
 }