Skip to content

Commit c7103e9

Browse files
committed
Fixed attribute name arguments order
1 parent 005d5e7 commit c7103e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Entity/Role.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ class Role implements EntityInterface
5454
* @var Collection<int, UserGroup>|ArrayCollection<int, UserGroup>
5555
*/
5656
#[ORM\OneToMany(
57-
mappedBy: 'role',
5857
targetEntity: UserGroup::class,
58+
mappedBy: 'role',
5959
)]
6060
#[Groups([
6161
'Role.userGroups',
@@ -80,7 +80,7 @@ public function __construct(
8080
UserGroup::SET_USER_PROFILE_GROUPS,
8181
UserGroup::SET_USER_GROUP_BASIC,
8282
])]
83-
private string $id
83+
private readonly string $id
8484
) {
8585
$this->userGroups = new ArrayCollection();
8686
}

0 commit comments

Comments
 (0)