second
This commit is contained in:
@@ -26,7 +26,7 @@ class Patient
|
||||
private ?\DateTimeInterface $birthdate = null;
|
||||
|
||||
#[ORM\Column]
|
||||
private ?int $donneurNumber = null;
|
||||
private ?string $donneurNumber = null;
|
||||
|
||||
#[ORM\OneToMany(mappedBy: 'donneur', targetEntity: Don::class, orphanRemoval: true)]
|
||||
private Collection $dons;
|
||||
@@ -77,12 +77,12 @@ class Patient
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getDonneurNumber(): ?int
|
||||
public function getDonneurNumber(): ?string
|
||||
{
|
||||
return $this->donneurNumber;
|
||||
}
|
||||
|
||||
public function setDonneurNumber(int $donneurNumber): self
|
||||
public function setDonneurNumber(string $donneurNumber): self
|
||||
{
|
||||
$this->donneurNumber = $donneurNumber;
|
||||
|
||||
@@ -118,7 +118,7 @@ class Patient
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
public function __toString()
|
||||
{
|
||||
return $this->firstname.' '.$this->lastname;
|
||||
|
Reference in New Issue
Block a user