From 0f8f975e3d086d574385ab7bfd4c2348547cba4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20P?= Date: Tue, 26 Nov 2024 15:49:36 +0100 Subject: [PATCH] Add column to Document --- src/Entity/Document.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/Entity/Document.php b/src/Entity/Document.php index bb21c84..4ce4f89 100644 --- a/src/Entity/Document.php +++ b/src/Entity/Document.php @@ -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, ]; }