| 1 | <?php |
||
| 17 | */ |
||
| 18 | class UserGroup |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @ORM\Id() |
||
| 22 | * @ORM\GeneratedValue(strategy="AUTO") |
||
| 23 | * @ORM\Column(type="integer") |
||
| 24 | */ |
||
| 25 | protected int $id; |
||
|
|
|||
| 26 | |||
| 27 | /** |
||
| 28 | * @ORM\ManyToMany(targetEntity="User", inversedBy="groups") |
||
| 29 | * |
||
| 30 | * @var Collection|User[] |
||
| 31 | */ |
||
| 32 | protected Collection $users; |
||
| 33 | |||
| 34 | public function __construct() |
||
| 35 | { |
||
| 36 | $this->users = new ArrayCollection(); |
||
| 37 | } |
||
| 38 | } |
||
| 39 |