Validation of confidential toggle added to accompanyingPeriod validator

This commit is contained in:
2022-02-15 14:22:41 +01:00
parent 385664e2bc
commit 4e83e7905a
5 changed files with 35 additions and 15 deletions

View File

@@ -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;