|
|
@@ -24,7 +24,6 @@ use App\Entity\Education\CriteriaNotation;
|
|
|
use App\Entity\Education\Cycle;
|
|
|
use App\Entity\Education\EducationCategory;
|
|
|
use App\Entity\Education\EducationNotationConfig;
|
|
|
-use App\Entity\Education\EducationStudent;
|
|
|
use App\Entity\Education\EducationTiming;
|
|
|
use App\Entity\Education\PeriodNotation;
|
|
|
use App\Entity\Message\Email;
|
|
|
@@ -56,11 +55,11 @@ use JetBrains\PhpStorm\Pure;
|
|
|
*
|
|
|
* Security :
|
|
|
*
|
|
|
- * * @see App\Doctrine\Organization\CurrentOrganizationExtension
|
|
|
+ * * @see \App\Doctrine\Organization\CurrentOrganizationExtension
|
|
|
*/
|
|
|
#[ApiResource(operations: [
|
|
|
new Get(security: 'object.getId() == user.getOrganization().getId()'),
|
|
|
-])] //
|
|
|
+])]
|
|
|
// #[Auditable]
|
|
|
#[ORM\Entity(repositoryClass: OrganizationRepository::class)]
|
|
|
class Organization
|
|
|
@@ -88,22 +87,22 @@ class Organization
|
|
|
private ?Settings $settings = null;
|
|
|
|
|
|
/** @var Collection<int, Access> */
|
|
|
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Access::class, cascade: ['persist'])]
|
|
|
+ #[ORM\OneToMany(targetEntity: Access::class, mappedBy: 'organization', cascade: ['persist'])]
|
|
|
private Collection $accesses;
|
|
|
|
|
|
/** @var Collection<int, NetworkOrganization> */
|
|
|
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: NetworkOrganization::class, cascade: ['persist', 'remove'], orphanRemoval: true)]
|
|
|
+ #[ORM\OneToMany(targetEntity: NetworkOrganization::class, mappedBy: 'organization', cascade: ['persist', 'remove'], orphanRemoval: true)]
|
|
|
private Collection $networkOrganizations;
|
|
|
|
|
|
/** @var Collection<int, NetworkOrganization> */
|
|
|
- #[ORM\OneToMany(mappedBy: 'parent', targetEntity: NetworkOrganization::class, cascade: ['persist', 'remove'], orphanRemoval: true)]
|
|
|
+ #[ORM\OneToMany(targetEntity: NetworkOrganization::class, mappedBy: 'parent', cascade: ['persist', 'remove'], orphanRemoval: true)]
|
|
|
private Collection $networkOrganizationChildren;
|
|
|
|
|
|
/** @var Collection<int, EducationNotationConfig> */
|
|
|
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: EducationNotationConfig::class, cascade: ['persist', 'remove'], orphanRemoval: true)]
|
|
|
+ #[ORM\OneToMany(targetEntity: EducationNotationConfig::class, mappedBy: 'organization', cascade: ['persist', 'remove'], orphanRemoval: true)]
|
|
|
private Collection $educationNotationConfigs;
|
|
|
|
|
|
- #[ORM\OneToOne(inversedBy: 'organization', targetEntity: Parameters::class, cascade: ['persist'])]
|
|
|
+ #[ORM\OneToOne(targetEntity: Parameters::class, inversedBy: 'organization', cascade: ['persist'])]
|
|
|
#[ORM\JoinColumn(nullable: false)]
|
|
|
private Parameters $parameters;
|
|
|
|
|
|
@@ -354,8 +353,8 @@ class Organization
|
|
|
#[ORM\OneToMany(targetEntity: Reward::class, mappedBy: 'organization', cascade: ['persist', 'remove'], orphanRemoval: true)]
|
|
|
private Collection $rewards;
|
|
|
|
|
|
- // #[ORM\OneToOne()]
|
|
|
- // private OnlineRegistrationSettings $onlineRegistrationSettings;
|
|
|
+// #[ORM\OneToOne()]
|
|
|
+// private OnlineRegistrationSettings $onlineRegistrationSettings;
|
|
|
|
|
|
/** @var Collection<int, Tagg> */
|
|
|
#[ORM\ManyToMany(targetEntity: Tagg::class, inversedBy: 'organizations', cascade: ['persist'])]
|
|
|
@@ -1847,15 +1846,15 @@ class Organization
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
- // public function getOnlineRegistrationSettings(): \App\Entity\Organization\OnlineRegistrationSettings
|
|
|
- // {
|
|
|
- // return $this->onlineRegistrationSettings;
|
|
|
- // }
|
|
|
- //
|
|
|
- // public function setOnlineRegistrationSettings(\App\Entity\Organization\OnlineRegistrationSettings $onlineRegistrationSettings): void
|
|
|
- // {
|
|
|
- // $this->onlineRegistrationSettings = $onlineRegistrationSettings;
|
|
|
- // }
|
|
|
+// public function getOnlineRegistrationSettings(): \App\Entity\Organization\OnlineRegistrationSettings
|
|
|
+// {
|
|
|
+// return $this->onlineRegistrationSettings;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public function setOnlineRegistrationSettings(\App\Entity\Organization\OnlineRegistrationSettings $onlineRegistrationSettings): void
|
|
|
+// {
|
|
|
+// $this->onlineRegistrationSettings = $onlineRegistrationSettings;
|
|
|
+// }
|
|
|
|
|
|
/**
|
|
|
* @return Collection<int, Tagg>
|