Bookings - Easyadmin support.

This commit is contained in:
2024-05-08 20:38:03 +02:00
parent 86abb7222e
commit 4f451c2f75
8 changed files with 176 additions and 20 deletions
+6 -1
View File
@@ -52,7 +52,7 @@ class BookingRoom
return $this->RoomCategory;
}
public function setRoomCategoryId(?RoomCategory $RoomCategory): static
public function setRoomCategory(?RoomCategory $RoomCategory): static
{
$this->RoomCategory = $RoomCategory;
@@ -94,4 +94,9 @@ class BookingRoom
return $this;
}
function __toString(): string
{
return $this->getAmount() . " " . $this->getRoomCategory()->getName() . " - " . $this->getGuestNumber() . " Guests";
}
}