Bookings - Easyadmin support.

This commit is contained in:
Daniel-Garmig committed 2024-05-08 20:38:03 +02:00
1 parent 86abb7222e
commit 4f451c2f75
8 files changed
+176 -20

No files matched your search

+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";
}
}