diff --git a/src/Entity/Finding.php b/src/Entity/Finding.php index c2f8213..1cb2674 100644 --- a/src/Entity/Finding.php +++ b/src/Entity/Finding.php @@ -24,8 +24,8 @@ class Finding implements \JsonSerializable #[ORM\Column(length: 100, nullable: true, name: 'luogo_rinv')] private ?string $place = null; - #[ORM\Column(nullable: true, name: 'anno_rinv')] - private ?int $year = null; + #[ORM\Column(nullable: true, name: 'anno_rinv', length: 40)] + private ?string $year = null; #[ORM\Column(length: 200, nullable: true, name: 'datazione')] private ?string $dating = null; @@ -111,12 +111,12 @@ class Finding implements \JsonSerializable return $this; } - public function getYear(): ?int + public function getYear(): ?string { return $this->year; } - public function setYear(?int $year): static + public function setYear(?string $year): static { $this->year = $year;