Skip to content
Snippets Groups Projects
Commit fd4ddff9 authored by Moreau Elise's avatar Moreau Elise
Browse files

use persistent collection to get groups

parent 72af5505
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ use JsonSerializable; ...@@ -7,6 +7,7 @@ use JsonSerializable;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
use DateTime; use DateTime;
use App\Domain\Group\Group ; use App\Domain\Group\Group ;
use Doctrine\ORM\PersistentCollection;
/** /**
* @ORM\Entity * @ORM\Entity
...@@ -134,9 +135,9 @@ class User implements JsonSerializable ...@@ -134,9 +135,9 @@ class User implements JsonSerializable
} }
/** /**
* @return array * @return PersistentCollection
*/ */
public function getGroups(): array public function getGroups(): PersistentCollection
{ {
return $this->groups; return $this->groups;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment