From 1b484a7f7ce8a7463dea19e22bd5c38dd1c804be Mon Sep 17 00:00:00 2001 From: Entwicklung Date: Thu, 23 Nov 2023 11:43:15 +0100 Subject: [PATCH] add null as initial value for an academy team in the user entity --- src/Entity/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Entity/User.php b/src/Entity/User.php index 46d019f7..58ab86a0 100644 --- a/src/Entity/User.php +++ b/src/Entity/User.php @@ -33,7 +33,7 @@ class User implements UserInterface private Collection $vVTDsfas; #[ORM\ManyToOne(targetEntity: Team::class, inversedBy: 'akademieUsers')] - private ?Team $akademieUser; + private ?Team $akademieUser = null; #[ORM\ManyToMany(targetEntity: Team::class, mappedBy: 'admins')] private $adminRoles; @@ -319,7 +319,7 @@ public function removeVVTDsfa(VVTDsfa $vVTDsfa): self return $this; } - public function getAkademieUser(): ?Team + public function getAkademieUser(): ?Team { return $this->akademieUser; }