We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f23c06c commit 16add16Copy full SHA for 16add16
src/Entity/Role.php
@@ -54,8 +54,8 @@ class Role implements EntityInterface
54
* @var Collection<int, UserGroup>|ArrayCollection<int, UserGroup>
55
*/
56
#[ORM\OneToMany(
57
- mappedBy: 'role',
58
targetEntity: UserGroup::class,
+ mappedBy: 'role',
59
)]
60
#[Groups([
61
'Role.userGroups',
@@ -80,7 +80,7 @@ public function __construct(
80
UserGroup::SET_USER_PROFILE_GROUPS,
81
UserGroup::SET_USER_GROUP_BASIC,
82
])]
83
- private string $id
+ private readonly string $id
84
) {
85
$this->userGroups = new ArrayCollection();
86
}
0 commit comments