From f573b4deca21c37e0f5375826894c86939eab551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20P?= Date: Wed, 26 Mar 2025 16:24:59 +0100 Subject: [PATCH] Add label to Site --- src/Entity/Site.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Entity/Site.php b/src/Entity/Site.php index d381246..2ec476b 100644 --- a/src/Entity/Site.php +++ b/src/Entity/Site.php @@ -92,6 +92,9 @@ class Site implements JsonSerializable #[ORM\Column(name: 'area', nullable: false, type: Types::BOOLEAN)] private ?bool $area = null; + #[ORM\Column(name: 'etichetta', nullable: false, length: 100)] + private ?string $label = null; + private ?float $lat; private ?float $lng; @@ -487,6 +490,7 @@ class Site implements JsonSerializable 'author' => $this->author, 'geojson' => $this->geojson, 'area' => $this->area, + 'label' => $this->label, ]; } }