create event by selecting a calendar range

This commit is contained in:
2022-05-23 16:48:17 +02:00
parent 38c7c8de60
commit a025883a5d
10 changed files with 101 additions and 28 deletions

View File

@@ -64,6 +64,7 @@ class Calendar implements TrackCreationInterface, TrackUpdateInterface
/**
* @ORM\ManyToOne(targetEntity="CalendarRange", inversedBy="calendars")
* @Serializer\Groups({"calendar:read", "read"})
*/
private ?CalendarRange $calendarRange = null;

View File

@@ -42,7 +42,7 @@ class CalendarRange implements TrackCreationInterface, TrackUpdateInterface
/**
* @ORM\Column(type="datetimetz_immutable")
* @groups({"read", "write"})
* @groups({"read", "write", "calendar:read"})
*/
private ?DateTimeImmutable $endDate = null;
@@ -56,13 +56,13 @@ class CalendarRange implements TrackCreationInterface, TrackUpdateInterface
/**
* @ORM\Column(type="datetimetz_immutable")
* @groups({"read", "write"})
* @groups({"read", "write", "calendar:read"})
*/
private ?DateTimeImmutable $startDate = null;
/**
* @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\User")
* @groups({"read", "write"})
* @groups({"read", "write", "calendar:read"})
*/
private ?User $user = null;