From 20b67f86e5e28b4978b433228937fb47b5174d4c Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Sat, 30 Nov 2024 19:58:48 -0500 Subject: [PATCH] Add supervisor and associated getter and setter --- src/Entity/User.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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;