rdv: fix regression with multiple groups for property on calendar

This commit is contained in:
nobohan
2021-08-19 16:00:37 +02:00
parent 65bce1aacb
commit 6a609eb1ab
2 changed files with 17 additions and 4 deletions

View File

@@ -21,6 +21,7 @@ use DateTimeImmutable;
use Symfony\Component\Validator\Constraints\NotBlank;
use Symfony\Component\Validator\Constraints\Range;
use Symfony\Component\Validator\Mapping\ClassMetadata;
use Symfony\Component\Serializer\Annotation as Serializer;
/**
* @ORM\Table(name="chill_calendar.calendar")
@@ -52,7 +53,7 @@ class Calendar
/**
* @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\User")
* @Groups({"read"})
* @Serializer\Groups({"calendar:read"})
*/
private ?User $mainUser;
@@ -93,13 +94,13 @@ class Calendar
/**
* @ORM\Column(type="datetimetz_immutable")
* @Groups({"read"})
* @Serializer\Groups({"calendar:read"})
*/
private \DateTimeImmutable $startDate;
/**
* @ORM\Column(type="datetimetz_immutable")
* @Groups({"read"})
* @Serializer\Groups({"calendar:read"})
*/
private \DateTimeImmutable $endDate;