Updated form to accommodate new datatype.

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

No files matched your search

+2 -2
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;