Include relationships in login response
dyb-tech.com/LaLiga-BackEnd/pipeline/head This commit looks good

This commit is contained in:
Daniel Guzman
2024-06-16 02:35:44 +02:00
parent 4eca9ab832
commit 887f1b47a5
780 changed files with 36283 additions and 3 deletions
+15
View File
@@ -64,6 +64,9 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
#[ORM\OneToMany(mappedBy: 'userToNotify', targetEntity: Notification::class, orphanRemoval: true)]
private Collection $receivedNotifications;
#[ORM\Column(nullable: true)]
private ?bool $privacyPolicy = null;
public function __construct()
{
@@ -349,4 +352,16 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
return $this;
}
public function isPrivacyPolicy(): ?bool
{
return $this->privacyPolicy;
}
public function setPrivacyPolicy(?bool $privacyPolicy): static
{
$this->privacyPolicy = $privacyPolicy;
return $this;
}
}