mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
Validation of confidential toggle added to accompanyingPeriod validator
This commit is contained in:
@@ -336,9 +336,6 @@ class AccompanyingPeriod implements
|
||||
* @ORM\ManyToOne(targetEntity=User::class)
|
||||
* @ORM\JoinColumn(nullable=true)
|
||||
* @Groups({"read", "write", "docgen:read"})
|
||||
* @Assert\Expression("!this.isConfidential() or (this.isConfidential() and value != null)",
|
||||
* groups={AccompanyingPeriod::STEP_CONFIRMED},
|
||||
* message="Referrer cannot be null for a confidential parcours")
|
||||
*/
|
||||
private ?User $user = null;
|
||||
|
||||
|
Reference in New Issue
Block a user