diff --git a/src/Entity/Invite.php b/src/Entity/Invite.php index 14f6870..00f3838 100644 --- a/src/Entity/Invite.php +++ b/src/Entity/Invite.php @@ -22,7 +22,7 @@ class Invite /** * @var User * - * @ORM\ManyToOne(targetEntity="App\Entity\User") + * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="invites") * @ORM\JoinColumn(name="user_id", nullable=false) */ private $user;