WIP: Implement new role house manager

This commit is contained in:
Björn Fromme
2023-11-03 13:00:52 +01:00
parent 392ea3f16f
commit 538d39f63e
7 changed files with 84 additions and 14 deletions
+6 -6
View File
@@ -48,8 +48,8 @@ class User implements UserInterface, TimestampableEntityInterface
#[ORM\OneToOne(inversedBy: 'user', cascade: ['persist', 'remove'])]
private ?Contact $contact = null;
#[ORM\Column(nullable: true)]
private ?int $hotelBusProId = null;
#[ORM\Column(length: 32, nullable: true)]
private ?string $hotelCode = null;
public function __construct()
{
@@ -221,14 +221,14 @@ class User implements UserInterface, TimestampableEntityInterface
return $this;
}
public function getHotelBusProId(): ?int
public function getHotelCode(): ?string
{
return $this->hotelBusProId;
return $this->hotelCode;
}
public function setHotelBusProId(?int $hotelBusProId): static
public function setHotelCode(?string $hotelCode): static
{
$this->hotelBusProId = $hotelBusProId;
$this->hotelCode = $hotelCode;
return $this;
}