Motif anulation
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user