diff --git a/src/Entity/User.php b/src/Entity/User.php index 16de4c7..04ff35c 100644 --- a/src/Entity/User.php +++ b/src/Entity/User.php @@ -71,8 +71,7 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface #[ORM\Column(enumType: CaseLevel::class)] private ?CaseLevel $level = null; - #[ORM\ManyToOne(inversedBy: 'supervisor')] - private ?Supervision $supervisor = null; + private ?User $supervisor = null; public function __construct() { @@ -298,12 +297,12 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface ]; } - public function getSupervisor(): ?Supervision + public function getSupervisor(): ?User { return $this->supervisor; } - public function setSupervisor(?Supervision $supervisor): static + public function setSupervisor(?User $supervisor): static { $this->supervisor = $supervisor;