|
@@ -9,7 +9,6 @@ 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;
|
|
@@ -59,17 +58,17 @@ class File
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* Slug du fichier (i.e. le chemin d'accès relatif)
|
|
* Slug du fichier (i.e. le chemin d'accès relatif)
|
|
|
- * @var string
|
|
|
|
|
|
|
+ * @var string|null
|
|
|
*/
|
|
*/
|
|
|
#[ORM\Column(length: 255)]
|
|
#[ORM\Column(length: 255)]
|
|
|
- private string $slug;
|
|
|
|
|
|
|
+ private ?string $slug = null;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* Chemin d'accès du fichier
|
|
* Chemin d'accès du fichier
|
|
|
- * @var string
|
|
|
|
|
|
|
+ * @var string|null
|
|
|
*/
|
|
*/
|
|
|
#[ORM\Column(length: 255)]
|
|
#[ORM\Column(length: 255)]
|
|
|
- private string $path;
|
|
|
|
|
|
|
+ private ?string $path = null;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* Nom du fichier
|
|
* Nom du fichier
|
|
@@ -259,10 +258,13 @@ class File
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @param Person $person
|
|
* @param Person $person
|
|
|
|
|
+ * @return File
|
|
|
*/
|
|
*/
|
|
|
- public function setPerson(Person $person): void
|
|
|
|
|
|
|
+ public function setPerson(Person $person): self
|
|
|
{
|
|
{
|
|
|
$this->person = $person;
|
|
$this->person = $person;
|
|
|
|
|
+
|
|
|
|
|
+ return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -275,29 +277,32 @@ class File
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @param Organization $organization
|
|
* @param Organization $organization
|
|
|
|
|
+ * @return File
|
|
|
*/
|
|
*/
|
|
|
- public function setOrganization(Organization $organization): void
|
|
|
|
|
|
|
+ public function setOrganization(Organization $organization): self
|
|
|
{
|
|
{
|
|
|
$this->organization = $organization;
|
|
$this->organization = $organization;
|
|
|
|
|
+
|
|
|
|
|
+ return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public function getSlug(): string
|
|
|
|
|
|
|
+ public function getSlug(): ?string
|
|
|
{
|
|
{
|
|
|
return $this->slug;
|
|
return $this->slug;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public function setSlug(string $slug): self
|
|
|
|
|
|
|
+ public function setSlug(?string $slug): self
|
|
|
{
|
|
{
|
|
|
$this->slug = $slug;
|
|
$this->slug = $slug;
|
|
|
return $this;
|
|
return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public function getPath(): string
|
|
|
|
|
|
|
+ public function getPath(): ?string
|
|
|
{
|
|
{
|
|
|
return $this->path;
|
|
return $this->path;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public function setPath(string $path): self
|
|
|
|
|
|
|
+ public function setPath(?string $path): self
|
|
|
{
|
|
{
|
|
|
$this->path = $path;
|
|
$this->path = $path;
|
|
|
return $this;
|
|
return $this;
|
|
@@ -354,11 +359,9 @@ class File
|
|
|
|
|
|
|
|
public function removePersonImage(Person $person): self
|
|
public function removePersonImage(Person $person): self
|
|
|
{
|
|
{
|
|
|
- if ($this->personImages->removeElement($person)) {
|
|
|
|
|
- // set the owning side to null (unless already changed)
|
|
|
|
|
- if ($person->getImage() === $this) {
|
|
|
|
|
- $person->setImage(null);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // set the owning side to null (unless already changed)
|
|
|
|
|
+ if ($this->personImages->removeElement($person) && $person->getImage() === $this) {
|
|
|
|
|
+ $person->setImage(null);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
@@ -374,10 +377,13 @@ class File
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @param string $visibility
|
|
* @param string $visibility
|
|
|
|
|
+ * @return File
|
|
|
*/
|
|
*/
|
|
|
- public function setVisibility(string $visibility): void
|
|
|
|
|
|
|
+ public function setVisibility(string $visibility): self
|
|
|
{
|
|
{
|
|
|
$this->visibility = $visibility;
|
|
$this->visibility = $visibility;
|
|
|
|
|
+
|
|
|
|
|
+ return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -390,10 +396,13 @@ class File
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @param string $folder
|
|
* @param string $folder
|
|
|
|
|
+ * @return File
|
|
|
*/
|
|
*/
|
|
|
- public function setFolder(string $folder): void
|
|
|
|
|
|
|
+ public function setFolder(string $folder): self
|
|
|
{
|
|
{
|
|
|
$this->folder = $folder;
|
|
$this->folder = $folder;
|
|
|
|
|
+
|
|
|
|
|
+ return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -406,10 +415,13 @@ class File
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @param string $type
|
|
* @param string $type
|
|
|
|
|
+ * @return File
|
|
|
*/
|
|
*/
|
|
|
- public function setType(string $type): void
|
|
|
|
|
|
|
+ public function setType(string $type): self
|
|
|
{
|
|
{
|
|
|
$this->type = $type;
|
|
$this->type = $type;
|
|
|
|
|
+
|
|
|
|
|
+ return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -422,10 +434,13 @@ class File
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @param int|null $size
|
|
* @param int|null $size
|
|
|
|
|
+ * @return File
|
|
|
*/
|
|
*/
|
|
|
- public function setSize(?int $size): void
|
|
|
|
|
|
|
+ public function setSize(?int $size): self
|
|
|
{
|
|
{
|
|
|
$this->size = $size;
|
|
$this->size = $size;
|
|
|
|
|
+
|
|
|
|
|
+ return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -438,10 +453,13 @@ class File
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @param bool $isTemporaryFile
|
|
* @param bool $isTemporaryFile
|
|
|
|
|
+ * @return File
|
|
|
*/
|
|
*/
|
|
|
- public function setIsTemporaryFile(bool $isTemporaryFile): void
|
|
|
|
|
|
|
+ public function setIsTemporaryFile(bool $isTemporaryFile): self
|
|
|
{
|
|
{
|
|
|
$this->isTemporaryFile = $isTemporaryFile;
|
|
$this->isTemporaryFile = $isTemporaryFile;
|
|
|
|
|
+
|
|
|
|
|
+ return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -454,10 +472,13 @@ class File
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @param DateTime $createDate
|
|
* @param DateTime $createDate
|
|
|
|
|
+ * @return File
|
|
|
*/
|
|
*/
|
|
|
- public function setCreateDate(DateTime $createDate): void
|
|
|
|
|
|
|
+ public function setCreateDate(DateTime $createDate): self
|
|
|
{
|
|
{
|
|
|
$this->createDate = $createDate;
|
|
$this->createDate = $createDate;
|
|
|
|
|
+
|
|
|
|
|
+ return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -470,10 +491,13 @@ class File
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @param int|null $createdBy
|
|
* @param int|null $createdBy
|
|
|
|
|
+ * @return File
|
|
|
*/
|
|
*/
|
|
|
- public function setCreatedBy(?int $createdBy): void
|
|
|
|
|
|
|
+ public function setCreatedBy(?int $createdBy): self
|
|
|
{
|
|
{
|
|
|
$this->createdBy = $createdBy;
|
|
$this->createdBy = $createdBy;
|
|
|
|
|
+
|
|
|
|
|
+ return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -486,10 +510,13 @@ class File
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @param DateTime $updateDate
|
|
* @param DateTime $updateDate
|
|
|
|
|
+ * @return File
|
|
|
*/
|
|
*/
|
|
|
- public function setUpdateDate(DateTime $updateDate): void
|
|
|
|
|
|
|
+ public function setUpdateDate(DateTime $updateDate): self
|
|
|
{
|
|
{
|
|
|
$this->updateDate = $updateDate;
|
|
$this->updateDate = $updateDate;
|
|
|
|
|
+
|
|
|
|
|
+ return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -502,10 +529,13 @@ class File
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @param int|null $updatedBy
|
|
* @param int|null $updatedBy
|
|
|
|
|
+ * @return File
|
|
|
*/
|
|
*/
|
|
|
- public function setUpdatedBy(?int $updatedBy): void
|
|
|
|
|
|
|
+ public function setUpdatedBy(?int $updatedBy): self
|
|
|
{
|
|
{
|
|
|
$this->updatedBy = $updatedBy;
|
|
$this->updatedBy = $updatedBy;
|
|
|
|
|
+
|
|
|
|
|
+ return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -518,10 +548,13 @@ class File
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @param string|null $status
|
|
* @param string|null $status
|
|
|
|
|
+ * @return File
|
|
|
*/
|
|
*/
|
|
|
- public function setStatus(?string $status): void
|
|
|
|
|
|
|
+ public function setStatus(?string $status): self
|
|
|
{
|
|
{
|
|
|
$this->status = $status;
|
|
$this->status = $status;
|
|
|
|
|
+
|
|
|
|
|
+ return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public function getOrganizationLogos(): Collection
|
|
public function getOrganizationLogos(): Collection
|
|
@@ -541,11 +574,9 @@ class File
|
|
|
|
|
|
|
|
public function removeOrganizationLogo(Organization $organization): self
|
|
public function removeOrganizationLogo(Organization $organization): self
|
|
|
{
|
|
{
|
|
|
- if ($this->organizationLogos->removeElement($organization)) {
|
|
|
|
|
- // set the owning side to null (unless already changed)
|
|
|
|
|
- if ($organization->getLogo() === $this) {
|
|
|
|
|
- $organization->setLogo(null);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // set the owning side to null (unless already changed)
|
|
|
|
|
+ if ($this->organizationLogos->removeElement($organization) && $organization->getLogo() === $this) {
|
|
|
|
|
+ $organization->setLogo(null);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
@@ -568,11 +599,9 @@ class File
|
|
|
|
|
|
|
|
public function removeOrganizationImage(Organization $organization): self
|
|
public function removeOrganizationImage(Organization $organization): self
|
|
|
{
|
|
{
|
|
|
- if ($this->organizationImages->removeElement($organization)) {
|
|
|
|
|
- // set the owning side to null (unless already changed)
|
|
|
|
|
- if ($organization->getImage() === $this) {
|
|
|
|
|
- $organization->setImage(null);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // set the owning side to null (unless already changed)
|
|
|
|
|
+ if ($this->organizationImages->removeElement($organization) && $organization->getImage() === $this) {
|
|
|
|
|
+ $organization->setImage(null);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
@@ -586,6 +615,7 @@ class File
|
|
|
public function setQrCode(Parameters $qrCode): self
|
|
public function setQrCode(Parameters $qrCode): self
|
|
|
{
|
|
{
|
|
|
$this->qrCode = $qrCode;
|
|
$this->qrCode = $qrCode;
|
|
|
|
|
+
|
|
|
return $this;
|
|
return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -633,11 +663,9 @@ class File
|
|
|
|
|
|
|
|
public function removeEvent(Event $event): self
|
|
public function removeEvent(Event $event): self
|
|
|
{
|
|
{
|
|
|
- if ($this->events->removeElement($event)) {
|
|
|
|
|
- // set the owning side to null (unless already changed)
|
|
|
|
|
- if ($event->getImage() === $this) {
|
|
|
|
|
- $event->setImage(null);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // set the owning side to null (unless already changed)
|
|
|
|
|
+ if ($this->events->removeElement($event) && $event->getImage() === $this) {
|
|
|
|
|
+ $event->setImage(null);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
@@ -663,11 +691,9 @@ class File
|
|
|
|
|
|
|
|
public function removeActivityLogo(Activity $activityLogo): self
|
|
public function removeActivityLogo(Activity $activityLogo): self
|
|
|
{
|
|
{
|
|
|
- if ($this->activityLogos->removeElement($activityLogo)) {
|
|
|
|
|
- // set the owning side to null (unless already changed)
|
|
|
|
|
- if ($activityLogo->getLogo() === $this) {
|
|
|
|
|
- $activityLogo->setLogo(null);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // set the owning side to null (unless already changed)
|
|
|
|
|
+ if ($this->activityLogos->removeElement($activityLogo) && $activityLogo->getLogo() === $this) {
|
|
|
|
|
+ $activityLogo->setLogo(null);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
@@ -693,11 +719,9 @@ class File
|
|
|
|
|
|
|
|
public function removeActivityImage(Activity $activityImage): self
|
|
public function removeActivityImage(Activity $activityImage): self
|
|
|
{
|
|
{
|
|
|
- if ($this->activityImages->removeElement($activityImage)) {
|
|
|
|
|
- // set the owning side to null (unless already changed)
|
|
|
|
|
- if ($activityImage->getImageActivity() === $this) {
|
|
|
|
|
- $activityImage->setImageActivity(null);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // set the owning side to null (unless already changed)
|
|
|
|
|
+ if ($this->activityImages->removeElement($activityImage) && $activityImage->getImageActivity() === $this) {
|
|
|
|
|
+ $activityImage->setImageActivity(null);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|