Add column to Document
This commit is contained in:
parent
3bcdb1bf2d
commit
0f8f975e3d
@ -26,6 +26,9 @@ class Document implements \JsonSerializable
|
||||
#[ORM\Column(length: 400, nullable: true, name: 'autori')]
|
||||
private ?string $authors = null;
|
||||
|
||||
#[ORM\Column(nullable: true, name: 'luogo')]
|
||||
private ?string $conservationPlace = null;
|
||||
|
||||
#[ORM\Column(length: 20, nullable: true, name: 'tipo')]
|
||||
private ?string $type = null;
|
||||
|
||||
@ -101,6 +104,18 @@ class Document implements \JsonSerializable
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getConservationPlace(): ?string
|
||||
{
|
||||
return $this->conservationPlace;
|
||||
}
|
||||
|
||||
public function setConservationPlace(?string $conservationPlace): static
|
||||
{
|
||||
$this->conservationPlace = $conservationPlace;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function jsonSerialize(): mixed
|
||||
{
|
||||
return [
|
||||
@ -109,6 +124,7 @@ class Document implements \JsonSerializable
|
||||
'filename' => $this->filename,
|
||||
'description' => $this->description,
|
||||
'authors' => $this->authors,
|
||||
'conservationPlace' => $this->conservationPlace,
|
||||
'type' => $this->type,
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user