Motif anulation

This commit is contained in:
mepiphana2023
2024-11-25 16:21:50 +01:00
parent 72719df7c2
commit bacd365306
2 changed files with 33 additions and 3 deletions

View File

@@ -60,6 +60,13 @@ class Sortie
#[ORM\ManyToMany(targetEntity: Participant::class, mappedBy: 'sortiesParticipants')]
private Collection $participants;
#[ORM\Column(type: Types::TEXT, nullable: true)]
#[Assert\Length(
max: 1000,
maxMessage: 'Le motif d\'annulation ne peut pas dépasser {{ limit }} caractères.'
)]
private ?string $motifAnnul = null;
public function __construct()
{
$this->participants = new ArrayCollection();
@@ -215,4 +222,16 @@ class Sortie
return $this;
}
public function getMotifAnnul(): ?string
{
return $this->motifAnnul;
}
public function setMotifAnnul(?string $motifAnnul): self
{
$this->motifAnnul = $motifAnnul;
return $this;
}
}