Skip to content

Commit 56fa8da

Browse files
committed
fix arg order
1 parent 430e98f commit 56fa8da

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/Util/fixtures/add_one_to_many_relation/User_simple.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class User
1414
#[ORM\Column(type: 'integer')]
1515
private $id;
1616

17-
#[ORM\OneToMany(mappedBy: 'user', targetEntity: UserAvatarPhoto::class)]
17+
#[ORM\OneToMany(targetEntity: UserAvatarPhoto::class, mappedBy: 'user')]
1818
private $avatarPhotos;
1919

2020
public function __construct()

tests/Util/fixtures/add_one_to_many_relation/User_simple_orphan_removal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class User
1414
#[ORM\Column(type: 'integer')]
1515
private $id;
1616

17-
#[ORM\OneToMany(mappedBy: 'user', targetEntity: UserAvatarPhoto::class, orphanRemoval: true)]
17+
#[ORM\OneToMany(targetEntity: UserAvatarPhoto::class, mappedBy: 'user', orphanRemoval: true)]
1818
private $avatarPhotos;
1919

2020
public function __construct()

tests/Util/fixtures/add_one_to_many_relation/User_with_use_statements.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class User
1616
#[ORM\Column(type: 'integer')]
1717
private $id;
1818

19-
#[ORM\OneToMany(mappedBy: 'user', targetEntity: UserAvatarPhoto::class)]
19+
#[ORM\OneToMany(targetEntity: UserAvatarPhoto::class, mappedBy: 'user')]
2020
private $avatarPhotos;
2121

2222
public function __construct()

0 commit comments

Comments
 (0)