From 251179e2af55763807c633b21e28facb63a7dbe6 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 4 Mar 2021 17:30:34 +0100 Subject: [PATCH] Minor - fix php doc + fix function call --- src/CoreBundle/Entity/Message.php | 2 +- src/CoreBundle/Entity/User.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CoreBundle/Entity/Message.php b/src/CoreBundle/Entity/Message.php index 52566061a5..79b8d62faa 100644 --- a/src/CoreBundle/Entity/Message.php +++ b/src/CoreBundle/Entity/Message.php @@ -314,7 +314,7 @@ class Message /** * Get attachments. * - * @return ArrayCollection|MessageAttachment[] + * @return Collection|MessageAttachment[] */ public function getAttachments() { diff --git a/src/CoreBundle/Entity/User.php b/src/CoreBundle/Entity/User.php index c7edcf2393..34becfd603 100644 --- a/src/CoreBundle/Entity/User.php +++ b/src/CoreBundle/Entity/User.php @@ -2175,7 +2175,7 @@ class User implements UserInterface, EquatableInterface, ResourceInterface, Reso public function getSessions(int $relationType): array { $sessions = []; - foreach ($this->sessions as $sessionRelUser) { + foreach ($this->getSessionsRelUser() as $sessionRelUser) { if ($sessionRelUser->getRelationType() === $relationType) { $sessions[] = $sessionRelUser->getSession(); }