소스 검색

ajout des nom des structure pous les events opentalent

maha bouchiba 1 년 전
부모
커밋
8a700ab533
2개의 변경된 파일19개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      sql/schema-extensions/001-view_public_events.sql
  2. 17 0
      src/Entity/Public/PublicEvent.php

+ 2 - 0
sql/schema-extensions/001-view_public_events.sql

@@ -2,6 +2,7 @@ CREATE OR REPLACE VIEW view_public_events AS
     SELECT
         b.uuid,
         b.organization_id AS organizationId,
+        o.name AS structureName,
         b.name,
         b.description,
         b.url,
@@ -51,6 +52,7 @@ CREATE OR REPLACE VIEW view_public_events AS
     SELECT
         aw.uuid,
         null AS organizationId,
+        NULL AS structureName,
         aw.name,
         aw.description,
         aw.deepLink AS url,

+ 17 - 0
src/Entity/Public/PublicEvent.php

@@ -55,6 +55,9 @@ class PublicEvent
     #[ORM\Column]
     private string $name;
 
+    #[ORM\Column]
+    private string $structureName;
+
     #[ORM\Column(type: 'string')]
     private ?string $description;
 
@@ -467,4 +470,18 @@ class PublicEvent
 
         return $this;
     }
+
+
+    public function getStructureName()
+    {
+        return $this->structureName;
+    }
+
+
+    public function setStructureName($structureName)
+    {
+        $this->structureName = $structureName;
+
+        return $this;
+    }
 }