|
|
@@ -33,14 +33,14 @@ use Symfony\Component\Serializer\Annotation\Groups;
|
|
|
normalizationContext: ['groups' => ['federation_structure_collection_get']]
|
|
|
),
|
|
|
],
|
|
|
- paginationEnabled: false
|
|
|
+ paginationEnabled: true
|
|
|
)]
|
|
|
#[ORM\Entity(repositoryClass: FederationStructureRepository::class, readOnly: true)]
|
|
|
#[ORM\Table(name: 'view_federation_structures')]
|
|
|
#[ApiFilter(filterClass: SearchFilter::class, properties: ['name' => 'partial', 'city' => 'exact'])]
|
|
|
#[ApiFilter(filterClass: NumericFilter::class, properties: ['id', 'parentId'])]
|
|
|
#[ApiFilter(filterClass: FindInSetFilter::class, properties: ['parents'])]
|
|
|
-#[ApiFilter(filterClass: BooleanFilter::class, properties: ['portailVisibility'])]
|
|
|
+#[ApiFilter(filterClass: BooleanFilter::class, properties: ['isFederation', 'portailVisibility'])]
|
|
|
class FederationStructure
|
|
|
{
|
|
|
#[ORM\Id]
|
|
|
@@ -68,6 +68,10 @@ class FederationStructure
|
|
|
#[Groups(['federation_structure_item_get', 'federation_structure_collection_get'])]
|
|
|
private ?string $type;
|
|
|
|
|
|
+ #[ORM\Column(options: ['default' => false])]
|
|
|
+ #[Groups(['federation_structure_item_get', 'federation_structure_collection_get'])]
|
|
|
+ private bool $isFederation = false;
|
|
|
+
|
|
|
#[ORM\Column(nullable: true)]
|
|
|
#[Groups(['federation_structure_item_get', 'federation_structure_collection_get'])]
|
|
|
private ?string $website;
|
|
|
@@ -209,6 +213,17 @@ class FederationStructure
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
+ public function getIsFederation(): bool
|
|
|
+ {
|
|
|
+ return $this->isFederation;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setIsFederation(bool $isFederation): self
|
|
|
+ {
|
|
|
+ $this->isFederation = $isFederation;
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
public function getWebsite(): ?string
|
|
|
{
|
|
|
return $this->website;
|