|
@@ -10,10 +10,12 @@ use ApiPlatform\Metadata\Get;
|
|
|
use ApiPlatform\Metadata\Post;
|
|
use ApiPlatform\Metadata\Post;
|
|
|
use ApiPlatform\Metadata\Put;
|
|
use ApiPlatform\Metadata\Put;
|
|
|
use App\Entity\AccessWish\DocumentWish;
|
|
use App\Entity\AccessWish\DocumentWish;
|
|
|
|
|
+use App\Entity\Booking\CalendarSynchro;
|
|
|
use App\Entity\Booking\Event;
|
|
use App\Entity\Booking\Event;
|
|
|
use App\Entity\Booking\EventReport;
|
|
use App\Entity\Booking\EventReport;
|
|
|
use App\Entity\Booking\Work;
|
|
use App\Entity\Booking\Work;
|
|
|
use App\Entity\Message\TemplateSystem;
|
|
use App\Entity\Message\TemplateSystem;
|
|
|
|
|
+use App\Entity\Network\Network;
|
|
|
use App\Entity\Organization\Activity;
|
|
use App\Entity\Organization\Activity;
|
|
|
use App\Entity\Organization\OnlineRegistrationSettings;
|
|
use App\Entity\Organization\OnlineRegistrationSettings;
|
|
|
use App\Entity\Organization\Organization;
|
|
use App\Entity\Organization\Organization;
|
|
@@ -231,6 +233,12 @@ class File
|
|
|
#[ORM\JoinColumn(onDelete: 'CASCADE')]
|
|
#[ORM\JoinColumn(onDelete: 'CASCADE')]
|
|
|
private TemplateSystem $templateSystem;
|
|
private TemplateSystem $templateSystem;
|
|
|
|
|
|
|
|
|
|
+ #[ORM\OneToMany(mappedBy: 'image', targetEntity: Network::class)]
|
|
|
|
|
+ private Collection $networks;
|
|
|
|
|
+
|
|
|
|
|
+ #[ORM\OneToOne(targetEntity: CalendarSynchro::class, mappedBy: 'file')]
|
|
|
|
|
+ private CalendarSynchro $calendarSynchro;
|
|
|
|
|
+
|
|
|
#[Pure]
|
|
#[Pure]
|
|
|
public function __construct()
|
|
public function __construct()
|
|
|
{
|
|
{
|
|
@@ -241,6 +249,7 @@ class File
|
|
|
$this->events = new ArrayCollection();
|
|
$this->events = new ArrayCollection();
|
|
|
$this->activityLogos = new ArrayCollection();
|
|
$this->activityLogos = new ArrayCollection();
|
|
|
$this->activityImages = new ArrayCollection();
|
|
$this->activityImages = new ArrayCollection();
|
|
|
|
|
+ $this->networks = new ArrayCollection();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public function getId(): ?int
|
|
public function getId(): ?int
|
|
@@ -738,4 +747,37 @@ class File
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ public function getNetworks(): Collection
|
|
|
|
|
+ {
|
|
|
|
|
+ return $this->networks;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public function addNetwork(Network $network): self
|
|
|
|
|
+ {
|
|
|
|
|
+ if (!$this->networks->contains($network)) {
|
|
|
|
|
+ $this->networks[] = $network;
|
|
|
|
|
+ $network->setImage($this);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ return $this;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public function removeNetwork(Network $network): self
|
|
|
|
|
+ {
|
|
|
|
|
+ $this->networks->removeElement($network);
|
|
|
|
|
+
|
|
|
|
|
+ return $this;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public function getCalendarSynchro(): CalendarSynchro
|
|
|
|
|
+ {
|
|
|
|
|
+ return $this->calendarSynchro;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public function setCalendarSynchro(CalendarSynchro $calendarSynchro): self
|
|
|
|
|
+ {
|
|
|
|
|
+ $this->calendarSynchro = $calendarSynchro;
|
|
|
|
|
+ return $this;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|