|
|
@@ -13,8 +13,9 @@ use App\Entity\Billing\AccessBilling;
|
|
|
use App\Entity\Billing\AccessFictionalIntangible;
|
|
|
use App\Entity\Billing\AccessIntangible;
|
|
|
use App\Entity\Billing\AccessPayer;
|
|
|
-use App\Entity\Billing\Bill;
|
|
|
-use App\Entity\Billing\BillCredit;
|
|
|
+use App\Entity\Billing\AdvancePayment;
|
|
|
+use App\Entity\Billing\AbstractBill;
|
|
|
+use App\Entity\Billing\AbstractBillCredit;
|
|
|
use App\Entity\Billing\BillLine;
|
|
|
use App\Entity\Billing\EducationalProjectPayer;
|
|
|
use App\Entity\Booking\Attendance;
|
|
|
@@ -33,6 +34,7 @@ use App\Entity\Donor\Donor;
|
|
|
use App\Entity\Education\EducationNotationConfig;
|
|
|
use App\Entity\Education\EducationStudent;
|
|
|
use App\Entity\Education\EducationTeacher;
|
|
|
+use App\Entity\Message\AbstractMessage;
|
|
|
use App\Entity\Message\Email;
|
|
|
use App\Entity\Message\Mail;
|
|
|
use App\Entity\Message\Sms;
|
|
|
@@ -50,6 +52,13 @@ use App\Entity\Product\Equipment;
|
|
|
use App\Entity\Product\EquipmentLoan;
|
|
|
use App\Entity\Product\EquipmentRepair;
|
|
|
use App\Entity\Reward\AccessReward;
|
|
|
+use App\Entity\Access\AccessCommunication;
|
|
|
+use App\Entity\Access\AccessNetworkSetting;
|
|
|
+use App\Entity\Access\AccessSocial;
|
|
|
+use App\Entity\Booking\AbstractBooking;
|
|
|
+use App\Entity\Booking\CalendarSynchro;
|
|
|
+use App\Entity\Core\AbstractControl;
|
|
|
+use App\Entity\Token\Token;
|
|
|
use App\Filter\ApiPlatform\Person\FullNameFilter;
|
|
|
use App\Filter\ApiPlatform\Utils\InFilter;
|
|
|
use App\Repository\Access\AccessRepository;
|
|
|
@@ -204,13 +213,13 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
#[ORM\OneToMany(mappedBy: 'educationalProjectPayer', targetEntity: EducationalProjectPayer::class, cascade: ['persist'], orphanRemoval: true)]
|
|
|
private Collection $billingEducationalProjectPayers;
|
|
|
|
|
|
- #[ORM\OneToMany(mappedBy: 'access', targetEntity: Bill::class, orphanRemoval: true)]
|
|
|
+ #[ORM\OneToMany(mappedBy: 'access', targetEntity: AbstractBill::class, orphanRemoval: true)]
|
|
|
private Collection $bills;
|
|
|
|
|
|
#[ORM\OneToMany(mappedBy: 'access', targetEntity: BillLine::class, orphanRemoval: true)]
|
|
|
private Collection $billLines;
|
|
|
|
|
|
- #[ORM\OneToMany(mappedBy: 'access', targetEntity: BillCredit::class, orphanRemoval: true)]
|
|
|
+ #[ORM\OneToMany(mappedBy: 'access', targetEntity: AbstractBillCredit::class, orphanRemoval: true)]
|
|
|
private Collection $billCredits;
|
|
|
|
|
|
#[ORM\OneToMany(mappedBy: 'silentPartner', targetEntity: EducationalProject::class)]
|
|
|
@@ -300,6 +309,39 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
#[ORM\InverseJoinColumn(name: 'tag_id', referencedColumnName: 'id')]
|
|
|
private Collection $tags;
|
|
|
|
|
|
+ #[ORM\ManyToMany(mappedBy: 'organizer', targetEntity: AbstractBooking::class, cascade: ['persist'], orphanRemoval: false)]
|
|
|
+ private Collection $bookingOrganizers;
|
|
|
+
|
|
|
+ #[ORM\OneToMany(mappedBy: 'access', targetEntity: AdvancePayment::class, cascade: [], orphanRemoval: true)]
|
|
|
+ private Collection $advancePayments;
|
|
|
+
|
|
|
+ #[ORM\OneToMany(mappedBy: 'author', targetEntity: AbstractMessage::class, cascade: [], orphanRemoval: true)]
|
|
|
+ private Collection $messages;
|
|
|
+
|
|
|
+ #[ORM\OneToMany(mappedBy: 'managerControl', targetEntity: Equipment::class, cascade: [], orphanRemoval: false)]
|
|
|
+ private Collection $equipmentManagerControls;
|
|
|
+
|
|
|
+ #[ORM\OneToMany(mappedBy: 'accompanist', targetEntity: AbstractControl::class, cascade: [], orphanRemoval: true)]
|
|
|
+ private Collection $accompanistControl;
|
|
|
+
|
|
|
+ #[ORM\OneToMany(mappedBy: 'access', targetEntity: AccessReward::class, cascade: ['persist'], orphanRemoval: true)]
|
|
|
+ private Collection $rewards;
|
|
|
+
|
|
|
+ #[ORM\OneToOne(mappedBy: 'access', targetEntity: AccessSocial::class, cascade: ['persist'], orphanRemoval: true)]
|
|
|
+ private AccessSocial $accessSocial;
|
|
|
+
|
|
|
+ #[ORM\OneToOne(mappedBy: 'access', targetEntity: AccessNetworkSetting::class, cascade: ['persist', 'remove'], orphanRemoval: true)]
|
|
|
+ private AccessNetworkSetting $accessNetworkSetting;
|
|
|
+
|
|
|
+ #[ORM\OneToOne(mappedBy: 'access', targetEntity: AccessCommunication::class, cascade: ['persist'], orphanRemoval: true)]
|
|
|
+ private AccessCommunication $accessCommunication;
|
|
|
+
|
|
|
+ #[ORM\OneToOne(mappedBy: 'access', targetEntity: CalendarSynchro::class, cascade: ['persist'], orphanRemoval: true)]
|
|
|
+ private CalendarSynchro $calendarSynchro;
|
|
|
+
|
|
|
+ #[ORM\OneToMany(mappedBy: 'access', targetEntity: Token::class, cascade: ['persist'], orphanRemoval: true)]
|
|
|
+ private Collection $tokens;
|
|
|
+
|
|
|
#[Pure]
|
|
|
public function __construct()
|
|
|
{
|
|
|
@@ -1145,14 +1187,14 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @return Collection<int, Bill>
|
|
|
+ * @return Collection<int, AbstractBill>
|
|
|
*/
|
|
|
public function getBills(): Collection
|
|
|
{
|
|
|
return $this->bills;
|
|
|
}
|
|
|
|
|
|
- public function addBill(Bill $bill): self
|
|
|
+ public function addBill(AbstractBill $bill): self
|
|
|
{
|
|
|
if (!$this->bills->contains($bill)) {
|
|
|
$this->bills[] = $bill;
|
|
|
@@ -1162,7 +1204,7 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
- public function removeBill(Bill $bill): self
|
|
|
+ public function removeBill(AbstractBill $bill): self
|
|
|
{
|
|
|
if ($this->bills->removeElement($bill)) {
|
|
|
// set the owning side to null (unless already changed)
|
|
|
@@ -1205,14 +1247,14 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @return Collection<int, BillCredit>
|
|
|
+ * @return Collection<int, AbstractBillCredit>
|
|
|
*/
|
|
|
public function getBillCredits(): Collection
|
|
|
{
|
|
|
return $this->billCredits;
|
|
|
}
|
|
|
|
|
|
- public function addBillCredit(BillCredit $billCredit): self
|
|
|
+ public function addBillCredit(AbstractBillCredit $billCredit): self
|
|
|
{
|
|
|
if (!$this->billCredits->contains($billCredit)) {
|
|
|
$this->billCredits[] = $billCredit;
|
|
|
@@ -1222,7 +1264,7 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
- public function removeBillCredit(BillCredit $billCredit): self
|
|
|
+ public function removeBillCredit(AbstractBillCredit $billCredit): self
|
|
|
{
|
|
|
if ($this->billCredits->removeElement($billCredit)) {
|
|
|
// set the owning side to null (unless already changed)
|
|
|
@@ -2138,4 +2180,126 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
|
|
|
return $this;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ function getBookingOrganizers(): Collection
|
|
|
+ {
|
|
|
+ return $this->bookingOrganizers;
|
|
|
+ }
|
|
|
+
|
|
|
+ function setBookingOrganizers(Collection $bookingOrganizers): self
|
|
|
+ {
|
|
|
+ $this->bookingOrganizers = $bookingOrganizers;
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function getAdvancePayments(): Collection
|
|
|
+ {
|
|
|
+ return $this->advancePayments;
|
|
|
+ }
|
|
|
+
|
|
|
+ function setAdvancePayments(Collection $advancePayments): self
|
|
|
+ {
|
|
|
+ $this->advancePayments = $advancePayments;
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function getMessages(): Collection
|
|
|
+ {
|
|
|
+ return $this->messages;
|
|
|
+ }
|
|
|
+
|
|
|
+ function setMessages(Collection $messages): self
|
|
|
+ {
|
|
|
+ $this->messages = $messages;
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function getEquipmentManagerControls(): Collection
|
|
|
+ {
|
|
|
+ return $this->equipmentManagerControls;
|
|
|
+ }
|
|
|
+
|
|
|
+ function setEquipmentManagerControls(Collection $equipmentManagerControls): self
|
|
|
+ {
|
|
|
+ $this->equipmentManagerControls = $equipmentManagerControls;
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function getAccompanistControl(): Collection
|
|
|
+ {
|
|
|
+ return $this->accompanistControl;
|
|
|
+ }
|
|
|
+
|
|
|
+ function setAccompanistControl(Collection $accompanistControl): self
|
|
|
+ {
|
|
|
+ $this->accompanistControl = $accompanistControl;
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function getRewards(): Collection
|
|
|
+ {
|
|
|
+ return $this->rewards;
|
|
|
+ }
|
|
|
+
|
|
|
+ function setRewards(Collection $rewards): self
|
|
|
+ {
|
|
|
+ $this->rewards = $rewards;
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function getAccessSocial(): AccessSocial
|
|
|
+ {
|
|
|
+ return $this->accessSocial;
|
|
|
+ }
|
|
|
+
|
|
|
+ function setAccessSocial(AccessSocial $accessSocial): self
|
|
|
+ {
|
|
|
+ $this->accessSocial = $accessSocial;
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function getAccessNetworkSetting(): AccessNetworkSetting
|
|
|
+ {
|
|
|
+ return $this->accessNetworkSetting;
|
|
|
+ }
|
|
|
+
|
|
|
+ function setAccessNetworkSetting(AccessNetworkSetting $accessNetworkSetting): self
|
|
|
+ {
|
|
|
+ $this->accessNetworkSetting = $accessNetworkSetting;
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function getAccessCommunication(): AccessCommunication
|
|
|
+ {
|
|
|
+ return $this->accessCommunication;
|
|
|
+ }
|
|
|
+
|
|
|
+ function setAccessCommunication(AccessCommunication $accessCommunication): self
|
|
|
+ {
|
|
|
+ $this->accessCommunication = $accessCommunication;
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function getCalendarSynchro(): CalendarSynchro
|
|
|
+ {
|
|
|
+ return $this->calendarSynchro;
|
|
|
+ }
|
|
|
+
|
|
|
+ function setCalendarSynchro(CalendarSynchro $calendarSynchro): self
|
|
|
+ {
|
|
|
+ $this->calendarSynchro = $calendarSynchro;
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function getTokens(): Collection
|
|
|
+ {
|
|
|
+ return $this->tokens;
|
|
|
+ }
|
|
|
+
|
|
|
+ function setTokens(Collection $tokens): self
|
|
|
+ {
|
|
|
+ $this->tokens = $tokens;
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
}
|