storedObject: add validation in properties where it is used

This commit is contained in:
nobohan
2022-04-25 13:52:49 +02:00
parent 83dd8f810c
commit 5ae6c6397c
2 changed files with 4 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ use DateTimeInterface;
use Doctrine\ORM\Mapping as ORM;
use RuntimeException;
use Symfony\Component\Serializer\Annotation as Serializer;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity
@@ -88,6 +89,7 @@ class AccompanyingPeriodWorkEvaluationDocument implements \Chill\MainBundle\Doct
* @Serializer\Groups({"read"})
* @Serializer\Groups({"write"})
* @Serializer\Groups({"accompanying_period_work_evaluation:create"})
* @Assert\Valid(traverse=true)
*/
private ?StoredObject $storedObject = null;