DB changed.

- Removed RoomCategoryDetails.
- Updated some constraints and fields.
This commit is contained in:
2024-09-09 13:44:18 +02:00
parent 53374dfdfc
commit 09f384fce0
15 changed files with 123 additions and 348 deletions
+7 -7
View File
@@ -14,14 +14,14 @@ class RoomCategoryPhoto
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
#[ORM\Column(length: 255, nullable: false)]
private ?string $path = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $altText = null;
#[ORM\Column(length: 30)]
private ?string $kind = null;
#[ORM\Column(nullable: true)]
private ?int $photoOrder = null;
#[ORM\ManyToOne(inversedBy: 'roomCategoryPhotos')]
#[ORM\JoinColumn(nullable: false)]
@@ -57,14 +57,14 @@ class RoomCategoryPhoto
return $this;
}
public function getKind(): ?string
public function getPhotoOrder(): ?int
{
return $this->kind;
return $this->photoOrder;
}
public function setKind(string $kind): static
public function setPhotoOrder(?int $photoOrder): static
{
$this->kind = $kind;
$this->photoOrder = $photoOrder;
return $this;
}