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

@@ -23,7 +23,7 @@ class File
private $extension;
#[ORM\Column(type: 'string', length: 255)]
private $type;
private $type = 'ebook';
#[ORM\ManyToOne(targetEntity: Book::class, inversedBy: 'files')]
#[ORM\JoinColumn(nullable: false)]
@@ -75,7 +75,7 @@ class File
return $this->type;
}
public function setType(string $type): self
public function setType(string $type = 'ebook'): self
{
$this->type = $type;