Minor - fix php doc + fix function call

pull/3844/head
Julio Montoya 4 years ago
parent 06d2030d1f
commit 251179e2af
  1. 2
      src/CoreBundle/Entity/Message.php
  2. 2
      src/CoreBundle/Entity/User.php

@ -314,7 +314,7 @@ class Message
/**
* Get attachments.
*
* @return ArrayCollection|MessageAttachment[]
* @return Collection|MessageAttachment[]
*/
public function getAttachments()
{

@ -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();
}

Loading…
Cancel
Save