Include relationships in login response
dyb-tech.com/LaLiga-BackEnd/pipeline/head This commit looks good
dyb-tech.com/LaLiga-BackEnd/pipeline/head This commit looks good
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user