Change year type

This commit is contained in:
Nicolò P 2024-11-26 14:33:09 +01:00
parent 6798fe4c38
commit 83bd1bb926

View File

@ -24,8 +24,8 @@ class Finding implements \JsonSerializable
#[ORM\Column(length: 100, nullable: true, name: 'luogo_rinv')] #[ORM\Column(length: 100, nullable: true, name: 'luogo_rinv')]
private ?string $place = null; private ?string $place = null;
#[ORM\Column(nullable: true, name: 'anno_rinv')] #[ORM\Column(nullable: true, name: 'anno_rinv', length: 40)]
private ?int $year = null; private ?string $year = null;
#[ORM\Column(length: 200, nullable: true, name: 'datazione')] #[ORM\Column(length: 200, nullable: true, name: 'datazione')]
private ?string $dating = null; private ?string $dating = null;
@ -111,12 +111,12 @@ class Finding implements \JsonSerializable
return $this; return $this;
} }
public function getYear(): ?int public function getYear(): ?string
{ {
return $this->year; return $this->year;
} }
public function setYear(?int $year): static public function setYear(?string $year): static
{ {
$this->year = $year; $this->year = $year;