Change year type
This commit is contained in:
parent
6798fe4c38
commit
83bd1bb926
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user