Updated form to accommodate new datatype.

This commit is contained in:
krzysiej
2022-05-23 15:13:26 +02:00
parent cd622f1c05
commit dddd432e3b
7 changed files with 181 additions and 88 deletions

View File

@@ -36,6 +36,27 @@ class Book
#[ORM\OneToMany(mappedBy: 'book', targetEntity: File::class, orphanRemoval: true)]
private $files;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $isbn;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $series;
#[ORM\Column(type: 'integer', nullable: true)]
private $volume;
#[ORM\Column(type: 'string', length: 255)]
private $author;
#[ORM\Column(type: 'text', nullable: true)]
private $tags;
#[ORM\Column(type: 'integer', nullable: true)]
private $pages;
#[ORM\Column(type: 'smallint', nullable: true)]
private $rating;
public function __construct()
{
$this->files = new ArrayCollection();
@@ -147,4 +168,88 @@ class Book
return $this;
}
public function getIsbn(): ?string
{
return $this->isbn;
}
public function setIsbn(?string $isbn): self
{
$this->isbn = $isbn;
return $this;
}
public function getSeries(): ?string
{
return $this->series;
}
public function setSeries(?string $series): self
{
$this->series = $series;
return $this;
}
public function getVolume(): ?int
{
return $this->volume;
}
public function setVolume(?int $volume): self
{
$this->volume = $volume;
return $this;
}
public function getAuthor(): ?string
{
return $this->author;
}
public function setAuthor(string $author): self
{
$this->author = $author;
return $this;
}
public function getTags(): ?string
{
return $this->tags;
}
public function setTags(?string $tags): self
{
$this->tags = $tags;
return $this;
}
public function getPages(): ?int
{
return $this->pages;
}
public function setPages(?int $pages): self
{
$this->pages = $pages;
return $this;
}
public function getRating(): ?int
{
return $this->rating;
}
public function setRating(?int $rating): self
{
$this->rating = $rating;
return $this;
}
}