This commit is contained in:
2022-10-15 22:24:22 +02:00
parent 0057bbcd96
commit 85125c7d6b
19 changed files with 299 additions and 27 deletions

View File

@ -14,7 +14,7 @@ class Don
private ?int $id = null;
#[ORM\Column]
private ?int $giftNumber = null;
private ?string $giftNumber = null;
#[ORM\ManyToOne(inversedBy: 'dons')]
#[ORM\JoinColumn(nullable: false)]
@ -24,20 +24,20 @@ class Don
#[ORM\JoinColumn(nullable: false)]
private ?Patient $donneur = null;
#[ORM\Column(length: 1000, nullable: true)]
private ?string $codeBarre = null;
#[ORM\Column]
private ?int $nbreTube = null;
public function getId(): ?int
{
return $this->id;
}
public function getGiftNumber(): ?int
public function getGiftNumber(): ?string
{
return $this->giftNumber;
}
public function setGiftNumber(int $giftNumber): self
public function setGiftNumber(string $giftNumber): self
{
$this->giftNumber = $giftNumber;
@ -68,14 +68,14 @@ class Don
return $this;
}
public function getCodeBarre(): ?string
public function getNbreTube(): ?int
{
return $this->codeBarre;
return $this->nbreTube;
}
public function setCodeBarre(?string $codeBarre): self
public function setNbreTube(int $nbreTube): self
{
$this->codeBarre = $codeBarre;
$this->nbreTube = $nbreTube;
return $this;
}