Feat: Add contacts

This commit is contained in:
Björn Fromme committed 2023-10-16 12:05:18 +02:00
1 parent f5fee787a0
commit 3fd4c6ca54
19 files changed
+658 -2

No files matched your search

+15
View File
@@ -45,6 +45,9 @@ class User implements UserInterface, TimestampableEntityInterface
#[ORM\OneToOne(inversedBy: 'user', cascade: ['persist', 'remove'])]
private ?Teamer $teamer = null;
#[ORM\OneToOne(inversedBy: 'user', cascade: ['persist', 'remove'])]
private ?Contact $contact = null;
public function __construct()
{
$this->uuid = Uuid::v4();
@@ -200,4 +203,16 @@ class User implements UserInterface, TimestampableEntityInterface
return $this;
}
public function getContact(): ?Contact
{
return $this->contact;
}
public function setContact(?Contact $contact): static
{
$this->contact = $contact;
return $this;
}
}