recreate calendar range when an event is deleted

This commit is contained in:
2022-07-01 13:43:30 +02:00
parent 0276ec1bc7
commit 87403e509f
9 changed files with 160 additions and 19 deletions

View File

@@ -149,9 +149,7 @@ class Calendar implements TrackCreationInterface, TrackUpdateInterface
private ?User $mainUser = null;
/**
* @ORM\ManyToMany(
* targetEntity="Chill\PersonBundle\Entity\Person",
* cascade={"persist", "remove", "merge", "detach"})
* @ORM\ManyToMany(targetEntity="Chill\PersonBundle\Entity\Person")
* @ORM\JoinTable(name="chill_calendar.calendar_to_persons")
* @Serializer\Groups({"calendar:read", "read"})
*/
@@ -164,9 +162,7 @@ class Calendar implements TrackCreationInterface, TrackUpdateInterface
private PrivateCommentEmbeddable $privateComment;
/**
* @ORM\ManyToMany(
* targetEntity="Chill\ThirdPartyBundle\Entity\ThirdParty",
* cascade={"persist", "remove", "merge", "detach"})
* @ORM\ManyToMany(targetEntity="Chill\ThirdPartyBundle\Entity\ThirdParty")
* @ORM\JoinTable(name="chill_calendar.calendar_to_thirdparties")
* @Serializer\Groups({"calendar:read", "read"})
*/