|
|
@@ -77,7 +77,6 @@ abstract class AbstractBooking
|
|
|
|
|
|
public function __construct()
|
|
|
{
|
|
|
- $this->eventRecur = new ArrayCollection();
|
|
|
$this->organizer = new ArrayCollection();
|
|
|
$this->equipments = new ArrayCollection();
|
|
|
$this->tags = new ArrayCollection();
|
|
|
@@ -100,6 +99,27 @@ abstract class AbstractBooking
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
+ public function getOrganizer(): Collection
|
|
|
+ {
|
|
|
+ return $this->organizer;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function addOrganizer(Access $organizer): self
|
|
|
+ {
|
|
|
+ if (!$this->organizer->contains($organizer)) {
|
|
|
+ $this->organizer[] = $organizer;
|
|
|
+ }
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function removeOrganizer(Access $organizer): self
|
|
|
+ {
|
|
|
+ $this->organizer->removeElement($organizer);
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
public function setDatetimeStart(?\DateTimeInterface $datetimeStart = null): self
|
|
|
{
|
|
|
$this->datetimeStart = $datetimeStart;
|