rdv: add user calendar endpoint + add this calendar in the calendar

This commit is contained in:
nobohan
2021-08-18 23:16:52 +02:00
parent dbf72774c2
commit 7c4f976230
8 changed files with 105 additions and 23 deletions

View File

@@ -41,17 +41,18 @@ class Calendar
/**
* @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\User")
* @Groups({"read"})
*/
private User $user;
/**
* @ORM\ManyToOne(targetEntity="Chill\PersonBundle\Entity\AccompanyingPeriod")
* @Groups({"read"})
*/
private AccompanyingPeriod $accompanyingPeriod;
/**
* @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\User")
* @Groups({"read"})
*/
private ?User $mainUser;
@@ -92,11 +93,13 @@ class Calendar
/**
* @ORM\Column(type="datetimetz_immutable")
* @Groups({"read"})
*/
private \DateTimeImmutable $startDate;
/**
* @ORM\Column(type="datetimetz_immutable")
* @Groups({"read"})
*/
private \DateTimeImmutable $endDate;