|
|
@@ -1,9 +1,11 @@
|
|
|
<?php
|
|
|
-declare(strict_types=1);
|
|
|
+declare (strict_types=1);
|
|
|
|
|
|
namespace App\Entity\Access;
|
|
|
|
|
|
-use ApiPlatform\Core\Annotation\ApiFilter;
|
|
|
+use ApiPlatform\Metadata\ApiResource;
|
|
|
+use ApiPlatform\Doctrine\Orm\Filter\BooleanFilter;
|
|
|
+use ApiPlatform\Metadata\ApiFilter;
|
|
|
use App\Entity\AccessWish\AccessWish;
|
|
|
use App\Entity\Billing\AccessBilling;
|
|
|
use App\Entity\Billing\Bill;
|
|
|
@@ -35,8 +37,6 @@ use App\Entity\Person\Medal;
|
|
|
use App\Entity\Product\Equipment;
|
|
|
use App\Entity\Product\EquipmentLoan;
|
|
|
use App\Filter\Person\FullNameFilter;
|
|
|
-use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\BooleanFilter;
|
|
|
-use ApiPlatform\Core\Annotation\ApiResource;
|
|
|
use App\Entity\Billing\AccessIntangible;
|
|
|
use App\Entity\Billing\AccessPayer;
|
|
|
use App\Entity\Core\Notification;
|
|
|
@@ -50,7 +50,7 @@ use App\Entity\Person\PersonActivity;
|
|
|
use App\Entity\Place\PlaceRepair;
|
|
|
use App\Entity\Place\RoomRepair;
|
|
|
use App\Entity\Product\EquipmentRepair;
|
|
|
-use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
|
|
|
+//use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
|
|
|
use Doctrine\Common\Collections\ArrayCollection;
|
|
|
use Doctrine\Common\Collections\Collection;
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
@@ -64,11 +64,11 @@ use Symfony\Component\Serializer\Annotation\Groups;
|
|
|
* @see : config/api_platform/Access/access.yaml
|
|
|
*/
|
|
|
#[ApiResource]
|
|
|
-#[Auditable]
|
|
|
+//#[Auditable]
|
|
|
#[ORM\Entity(repositoryClass: AccessRepository::class)]
|
|
|
-#[ApiFilter(BooleanFilter::class, properties: ['person.isPhysical'])]
|
|
|
-#[ApiFilter(FullNameFilter::class)]
|
|
|
-#[ApiFilter(InFilter::class, properties: ['id'])]
|
|
|
+#[ApiFilter(filterClass: BooleanFilter::class, properties: ['person.isPhysical'])]
|
|
|
+#[ApiFilter(filterClass: FullNameFilter::class)]
|
|
|
+#[ApiFilter(filterClass: InFilter::class, properties: ['id'])]
|
|
|
class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
{
|
|
|
#[ORM\Id]
|
|
|
@@ -105,7 +105,7 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
private ?array $setting = [];
|
|
|
|
|
|
#[Groups(['my_access:input'])]
|
|
|
- private array $historical = [];
|
|
|
+ private array $historical = [];
|
|
|
|
|
|
#[ORM\OneToOne(mappedBy: 'access', cascade: ['persist'], orphanRemoval: true)]
|
|
|
private AccessBilling $accessBilling;
|
|
|
@@ -289,7 +289,8 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
#[ORM\InverseJoinColumn(name: 'tag_id', referencedColumnName: 'id')]
|
|
|
private Collection $tags;
|
|
|
|
|
|
- #[Pure] public function __construct()
|
|
|
+ #[Pure]
|
|
|
+ public function __construct()
|
|
|
{
|
|
|
$this->personActivity = new ArrayCollection();
|
|
|
$this->organizationFunction = new ArrayCollection();
|
|
|
@@ -359,7 +360,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
public function setAdminAccess(bool $adminAccess): self
|
|
|
{
|
|
|
$this->adminAccess = $adminAccess;
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -371,7 +371,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
public function setSuperAdminAccess(bool $superAdminAccess): self
|
|
|
{
|
|
|
$this->superAdminAccess = $superAdminAccess;
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -383,7 +382,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
public function setPerson(?Person $person): self
|
|
|
{
|
|
|
$this->person = $person;
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -395,7 +393,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
public function setOrganization(?Organization $organization): self
|
|
|
{
|
|
|
$this->organization = $organization;
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -407,7 +404,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
public function setActivityYear(?int $activityYear): self
|
|
|
{
|
|
|
$this->activityYear = $activityYear;
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -418,9 +414,9 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
|
|
|
public function setHistorical(array $historical): self
|
|
|
{
|
|
|
- if(!$historical['past'] && !$historical['present'] && !$historical['future'])
|
|
|
+ if (!$historical['past'] && !$historical['present'] && !$historical['future']) {
|
|
|
$historical['present'] = true;
|
|
|
-
|
|
|
+ }
|
|
|
$this->setting['historical'] = $historical;
|
|
|
return $this;
|
|
|
}
|
|
|
@@ -448,7 +444,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->personActivity[] = $personActivity;
|
|
|
$personActivity->setAccess($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -460,7 +455,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$personActivity->setAccess(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -469,13 +463,12 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
return $this->organizationFunction;
|
|
|
}
|
|
|
|
|
|
- public function addOrganizationFunction (OrganizationFunction $organizationFunction): self
|
|
|
+ public function addOrganizationFunction(OrganizationFunction $organizationFunction): self
|
|
|
{
|
|
|
if (!$this->organizationFunction->contains($organizationFunction)) {
|
|
|
$this->organizationFunction[] = $organizationFunction;
|
|
|
$organizationFunction->setAccess($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -487,7 +480,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$organizationFunction->setAccess(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -502,7 +494,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->organizationLicences[] = $organizationLicence;
|
|
|
$organizationLicence->setLicensee($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -514,7 +505,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$organizationLicence->setLicensee(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -529,7 +519,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->personalizedLists[] = $personalizedList;
|
|
|
$personalizedList->setAccess($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -541,7 +530,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$personalizedList->setAccess(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -550,7 +538,7 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
return $this->children;
|
|
|
}
|
|
|
|
|
|
- public function addChild (Access $access): self
|
|
|
+ public function addChild(Access $access): self
|
|
|
{
|
|
|
if (!$this->children->contains($access)) {
|
|
|
$this->children[] = $access;
|
|
|
@@ -600,7 +588,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->billingPayers[] = $billingPayer;
|
|
|
$billingPayer->setAccessPayer($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -612,7 +599,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$billingPayer->setAccessPayer(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -627,7 +613,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->billingReceivers[] = $billingReceiver;
|
|
|
$billingReceiver->setAccessReceiver($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -639,7 +624,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$billingPayer->setAccessReceiver(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -654,7 +638,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->accessIntangibles[] = $accessIntangibles;
|
|
|
$accessIntangibles->setAccess($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -666,7 +649,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$accessIntangibles->setAccess(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -681,7 +663,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->notifications[] = $notification;
|
|
|
$notification->setRecipientAccess($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -693,7 +674,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$notification->setRecipientAccess(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -708,7 +688,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->notificationUsers[] = $notificationUser;
|
|
|
$notificationUser->setAccess($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -720,7 +699,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$notificationUser->setAccess(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -732,7 +710,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
public function setPublicationDirector(?Parameters $parameters): self
|
|
|
{
|
|
|
$this->publicationDirector = $parameters;
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -744,11 +721,11 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
public function setEducationNotationConfig(?EducationNotationConfig $educationNotationConfig): self
|
|
|
{
|
|
|
$this->educationNotationConfig = $educationNotationConfig;
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
- #[Pure] public function getUserIdentifier(): string
|
|
|
+ #[Pure]
|
|
|
+ public function getUserIdentifier(): string
|
|
|
{
|
|
|
return $this->person->getUserIdentifier();
|
|
|
}
|
|
|
@@ -781,7 +758,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
public function setSetting(?array $setting): self
|
|
|
{
|
|
|
$this->setting = $setting;
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -799,7 +775,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->companyPersonAccesses[] = $companyPersonAccess;
|
|
|
$companyPersonAccess->setCompany($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -811,7 +786,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$companyPersonAccess->setCompany(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -829,7 +803,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->companyPersonCompany[] = $companyPersonCompany;
|
|
|
$companyPersonCompany->setAccess($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -841,7 +814,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$companyPersonCompany->setAccess(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -859,7 +831,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->educationStudent[] = $educationStudent;
|
|
|
$educationStudent->setAccess($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -871,7 +842,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$educationStudent->setAccess(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -889,7 +859,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->educationStudentByTeacher[] = $educationStudentByTeacher;
|
|
|
$educationStudentByTeacher->addTeacher($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -898,7 +867,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
if ($this->educationStudentByTeacher->removeElement($educationStudentByTeacher)) {
|
|
|
$educationStudentByTeacher->removeTeacher($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -916,7 +884,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->educationTeachers[] = $educationTeacher;
|
|
|
$educationTeacher->setTeacher($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -928,7 +895,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$educationTeacher->setTeacher(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -946,7 +912,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->holidays[] = $holiday;
|
|
|
$holiday->setAccess($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -958,7 +923,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$holiday->setAccess(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -976,7 +940,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->courses[] = $course;
|
|
|
$course->addStudent($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -985,7 +948,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
if ($this->courses->removeElement($course)) {
|
|
|
$course->removeStudent($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1003,7 +965,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->practicalCourses[] = $practicalCourse;
|
|
|
$practicalCourse->addOrganizer($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1012,7 +973,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
if ($this->practicalCourses->removeElement($practicalCourse)) {
|
|
|
$practicalCourse->removeOrganizer($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1024,7 +984,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
public function setAccessFamily(?AccessFamily $accessFamily): self
|
|
|
{
|
|
|
$this->accessFamily = $accessFamily;
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1042,7 +1001,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->billingEducationalProjectPayers[] = $billingEducationalProjectPayer;
|
|
|
$billingEducationalProjectPayer->setEducationalProjectPayer($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1054,7 +1012,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$billingEducationalProjectPayer->setEducationalProjectPayer(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1072,7 +1029,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->bills[] = $bill;
|
|
|
$bill->setAccess($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1084,7 +1040,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$bill->setAccess(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1102,7 +1057,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->billLines[] = $billLine;
|
|
|
$billLine->setAccess($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1114,7 +1068,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$billLine->setAccess(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1132,7 +1085,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->billCredits[] = $billCredit;
|
|
|
$billCredit->setAccess($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1144,7 +1096,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$billCredit->setAccess(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1162,7 +1113,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->silentPartners[] = $silentPartner;
|
|
|
$silentPartner->setSilentPartner($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1174,7 +1124,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$silentPartner->setSilentPartner(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1192,7 +1141,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->operationalPartners[] = $operationalPartner;
|
|
|
$operationalPartner->setOperationalPartner($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1204,7 +1152,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$operationalPartner->setOperationalPartner(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1222,7 +1169,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->eventUsers[] = $eventUser;
|
|
|
$eventUser->setGuest($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1234,7 +1180,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$eventUser->setGuest(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1252,7 +1197,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->examenConvocations[] = $examenConvocation;
|
|
|
$examenConvocation->setStudent($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1264,7 +1208,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$examenConvocation->setStudent(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1282,7 +1225,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->equipmentRepairProviders[] = $equipmentRepairProvider;
|
|
|
$equipmentRepairProvider->setProvider($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1294,7 +1236,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$equipmentRepairProvider->setProvider(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1312,7 +1253,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->attendances[] = $attendance;
|
|
|
$attendance->setAccess($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1324,7 +1264,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$attendance->setAccess(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1342,7 +1281,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->attendanceBookings[] = $attendanceBooking;
|
|
|
$attendanceBooking->setAccess($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1354,7 +1292,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$attendanceBooking->setAccess(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1372,7 +1309,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->attendanceReplacements[] = $attendanceReplacement;
|
|
|
$attendanceReplacement->setReplacement($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1384,7 +1320,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$attendanceReplacement->setReplacement(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1402,7 +1337,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->roomRepairProviders[] = $roomRepairProvider;
|
|
|
$roomRepairProvider->setProvider($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1414,7 +1348,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$roomRepairProvider->setProvider(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1432,7 +1365,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->placeRepairProviders[] = $placeRepairProvider;
|
|
|
$placeRepairProvider->setProvider($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1444,7 +1376,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$placeRepairProvider->setProvider(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1462,7 +1393,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->juryMembers[] = $juryMember;
|
|
|
$juryMember->addMember($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1471,7 +1401,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
if ($this->juryMembers->removeElement($juryMember)) {
|
|
|
$juryMember->removeMember($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1489,7 +1418,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->organizationContacts[] = $organizationContact;
|
|
|
$organizationContact->setContactPerson($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1501,7 +1429,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$organizationContact->setContactPerson(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1519,7 +1446,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->commissionMembers[] = $commissionMember;
|
|
|
$commissionMember->setMember($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1531,7 +1457,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$commissionMember->setMember(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1549,7 +1474,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->equipmentSuppliers[] = $equipmentSupplier;
|
|
|
$equipmentSupplier->setSupplier($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1561,7 +1485,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$equipmentSupplier->setSupplier(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1579,7 +1502,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->equipmentControlManagers[] = $equipmentControlManager;
|
|
|
$equipmentControlManager->setControlManager($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1591,7 +1513,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$equipmentControlManager->setControlManager(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1609,7 +1530,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->equipmentEditors[] = $equipmentEditor;
|
|
|
$equipmentEditor->setEditor($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1621,7 +1541,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$equipmentEditor->setEditor(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1639,7 +1558,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->equipmentLoans[] = $equipmentLoan;
|
|
|
$equipmentLoan->setBorrower($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1651,7 +1569,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$equipmentLoan->setBorrower(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1669,7 +1586,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->equipments[] = $equipment;
|
|
|
$equipment->setAccess($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1681,7 +1597,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$equipment->setAccess(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1699,7 +1614,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->accessFictionalIntangibles[] = $accessFictionalIntangible;
|
|
|
$accessFictionalIntangible->setAccess($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1711,7 +1625,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$accessFictionalIntangible->setAccess(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1729,7 +1642,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->donors[] = $donor;
|
|
|
$donor->setAccess($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1741,7 +1653,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$donor->setAccess(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1759,7 +1670,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->medals[] = $medal;
|
|
|
$medal->setAccess($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1771,7 +1681,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$medal->setAccess(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1789,7 +1698,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->organizationResponsabilities[] = $organizationResponsability;
|
|
|
$organizationResponsability->setAccess($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1801,7 +1709,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$organizationResponsability->setAccess(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1819,7 +1726,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->accessWishes[] = $accessWish;
|
|
|
$accessWish->setAccessOriginal($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1831,7 +1737,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$accessWish->setAccessOriginal(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1849,7 +1754,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->workByUsers[] = $workByUser;
|
|
|
$workByUser->setStudent($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1861,7 +1765,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$workByUser->setStudent(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1878,14 +1781,12 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
if (!$this->tags->contains($tag)) {
|
|
|
$this->tags[] = $tag;
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
public function removeTag(Tagg $tag): self
|
|
|
{
|
|
|
$this->tags->removeElement($tag);
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1903,7 +1804,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->eventOrganizers[] = $eventOrganizer;
|
|
|
$eventOrganizer->addOrganizer($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1912,7 +1812,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
if ($this->eventOrganizers->removeElement($eventOrganizer)) {
|
|
|
$eventOrganizer->removeOrganizer($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1930,7 +1829,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->educationalProjectOrganizers[] = $educationalProjectOrganizer;
|
|
|
$educationalProjectOrganizer->addOrganizer($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1939,7 +1837,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
if ($this->educationalProjectOrganizers->removeElement($educationalProjectOrganizer)) {
|
|
|
$educationalProjectOrganizer->removeOrganizer($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1957,7 +1854,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->emails[] = $email;
|
|
|
$email->setAuthor($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1969,7 +1865,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$email->setAuthor(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1987,7 +1882,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->mails[] = $mail;
|
|
|
$mail->setAuthor($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1999,7 +1893,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$mail->setAuthor(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -2017,7 +1910,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$this->sms[] = $sms;
|
|
|
$sms->setAuthor($this);
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -2029,7 +1921,6 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
$sms->setAuthor(null);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -2044,15 +1935,11 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
if ($accessBilling === null && $this->accessBilling !== null) {
|
|
|
$this->accessBilling->setAccess(null);
|
|
|
}
|
|
|
-
|
|
|
// set the owning side of the relation if necessary
|
|
|
if ($accessBilling !== null && $accessBilling->getAccess() !== $this) {
|
|
|
$accessBilling->setAccess($this);
|
|
|
}
|
|
|
-
|
|
|
$this->accessBilling = $accessBilling;
|
|
|
-
|
|
|
return $this;
|
|
|
}
|
|
|
-
|
|
|
}
|