|
|
@@ -4,7 +4,6 @@ declare(strict_types=1);
|
|
|
namespace App\Entity\Organization;
|
|
|
|
|
|
use ApiPlatform\Core\Annotation\ApiResource;
|
|
|
-use ApiPlatform\Core\Annotation\ApiSubresource;
|
|
|
use App\Entity\Access\Access;
|
|
|
use App\Entity\Billing\BillingSetting;
|
|
|
use App\Entity\Booking\Attendance;
|
|
|
@@ -84,7 +83,7 @@ class Organization
|
|
|
private Collection $accesses;
|
|
|
|
|
|
#[ORM\OneToMany(mappedBy: 'organization', targetEntity: NetworkOrganization::class, orphanRemoval: true)]
|
|
|
- #[ApiSubresource]
|
|
|
+ #[ApiResource]
|
|
|
private Collection $networkOrganizations;
|
|
|
|
|
|
#[ORM\OneToMany(mappedBy: 'parent', targetEntity: NetworkOrganization::class, orphanRemoval: true)]
|
|
|
@@ -98,7 +97,7 @@ class Organization
|
|
|
private Parameters $parameters;
|
|
|
|
|
|
#[ORM\OneToOne(mappedBy: 'organization', cascade: ['persist', 'remove'], orphanRemoval: true)]
|
|
|
- #[ApiSubresource]
|
|
|
+ #[ApiResource]
|
|
|
private BillingSetting $billingSetting;
|
|
|
|
|
|
#[ORM\Column(type: 'text', nullable: true)]
|
|
|
@@ -217,31 +216,31 @@ class Organization
|
|
|
private ?File $image = null;
|
|
|
|
|
|
#[ORM\ManyToMany(targetEntity: TypeOfPractice::class, mappedBy: 'organizations')]
|
|
|
- #[ApiSubresource]
|
|
|
+ #[ApiResource]
|
|
|
private Collection $typeOfPractices;
|
|
|
|
|
|
#[ORM\Column(nullable: true)]
|
|
|
private ?string $otherPractice = null;
|
|
|
|
|
|
#[ORM\ManyToMany(targetEntity: ContactPoint::class, mappedBy: 'organization')]
|
|
|
- #[ApiSubresource]
|
|
|
+ #[ApiResource]
|
|
|
private Collection $contactPoints;
|
|
|
|
|
|
#[ORM\ManyToMany(targetEntity: BankAccount::class, inversedBy: 'organization')]
|
|
|
#[ORM\JoinColumn(name: 'organization_id', referencedColumnName: 'id', unique: true)]
|
|
|
#[ORM\InverseJoinColumn(name: 'bankAccount_id', referencedColumnName: 'id')]
|
|
|
- #[ApiSubresource]
|
|
|
+ #[ApiResource]
|
|
|
private Collection $bankAccounts;
|
|
|
|
|
|
#[ORM\OneToMany( mappedBy: 'organization', targetEntity: OrganizationAddressPostal::class, orphanRemoval: true)]
|
|
|
- #[ApiSubresource]
|
|
|
+ #[ApiResource]
|
|
|
private Collection $organizationAddressPostals;
|
|
|
|
|
|
#[ORM\OneToMany(mappedBy: 'organization', targetEntity: OrganizationLicence::class, orphanRemoval: true)]
|
|
|
private Collection $organizationLicences;
|
|
|
|
|
|
#[ORM\OneToMany(mappedBy: 'organization', targetEntity: OrganizationArticle::class, orphanRemoval: true)]
|
|
|
- #[ApiSubresource]
|
|
|
+ #[ApiResource]
|
|
|
private Collection $organizationArticles;
|
|
|
|
|
|
#[ORM\OneToMany(mappedBy: 'organization', targetEntity: Cycle::class, orphanRemoval: true)]
|
|
|
@@ -251,7 +250,7 @@ class Organization
|
|
|
private Collection $educationTimings;
|
|
|
|
|
|
#[ORM\OneToMany( mappedBy: 'organization', targetEntity: Subdomain::class)]
|
|
|
- #[ApiSubresource]
|
|
|
+ #[ApiResource]
|
|
|
private Collection $subdomains;
|
|
|
|
|
|
#[ORM\ManyToOne(inversedBy: 'organizationContacts')]
|