DB changed.
- Removed RoomCategoryDetails. - Updated some constraints and fields.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user