fix form create + WIP form edit for Accompanying Period Work

This commit is contained in:
2021-06-22 22:59:34 +02:00
parent 1cd376bf86
commit 0754d20622
13 changed files with 449 additions and 20 deletions

View File

@@ -49,7 +49,8 @@ use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\ManyToOne(targetEntity=SocialAction::class)
* @Serializer\Groups({"accompanying_period_work:create", "read"})
* @Serializer\Groups({"read"})
* @Serializer\Groups({"accompanying_period_work:create"})
*/
private ?SocialAction $socialAction = null;
@@ -101,7 +102,6 @@ use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\ManyToOne(targetEntity=ThirdParty::class)
* @Serializer\Groups({"read"})
* @Serializer\Groups({"accompanying_period_work:create"})
* @Serializer\Groups({"accompanying_period_work:edit"})
*
* In schema : traitant