From 95d78be8517ab88358570a8d772231eb3b96aa8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20P?= Date: Wed, 26 Mar 2025 11:46:52 +0100 Subject: [PATCH] Add flags to Site --- src/Entity/Site.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Entity/Site.php b/src/Entity/Site.php index 7f29f0c..d381246 100644 --- a/src/Entity/Site.php +++ b/src/Entity/Site.php @@ -86,6 +86,12 @@ class Site implements JsonSerializable #[ORM\Column(name: 'autore_scheda', nullable: true)] private ?string $author = null; + #[ORM\Column(name: 'geojson', nullable: false, type: Types::BOOLEAN)] + private ?bool $geojson = null; + + #[ORM\Column(name: 'area', nullable: false, type: Types::BOOLEAN)] + private ?bool $area = null; + private ?float $lat; private ?float $lng; @@ -479,6 +485,8 @@ class Site implements JsonSerializable 'bibliography' => $this->bibliography, 'techniques' => $this->techniques, 'author' => $this->author, + 'geojson' => $this->geojson, + 'area' => $this->area, ]; } }