Skip to content

Commit cd170c4

Browse files
committed
Fix relation
1 parent fa82d30 commit cd170c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Entities/Message.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ protected function getContent($format = 'html'): string
4848
*/
4949
protected function getParticipant(): ?Participant
5050
{
51-
if (is_null($this->participant['participant']))
51+
if (is_null($this->participant))
5252
{
53-
$this->attributes['participant'] = model(ParticipantModel::class)->find($this->attributes['participant_id']);
53+
$this->participant = model(ParticipantModel::class)->find($this->attributes['participant_id']);
5454
}
5555

56-
return $this->attributes['participant'];
56+
return $this->participant;
5757
}
5858
}

0 commit comments

Comments
 (0)