Updated form to accommodate new datatype.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user