Jelajahi Sumber

integration liip avec cache pour le site agenda

Vincent 1 tahun lalu
induk
melakukan
4957d8130b

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

@@ -34,6 +34,7 @@ CREATE OR REPLACE VIEW view_public_events AS
          WHERE ec.event_id = b.id
         ) AS categories,
         'opentalent' as origin,
+        b.image_id as imgId,
         b.id as entityId
     FROM Booking AS b
         INNER JOIN Organization o ON o.id = b.organization_id
@@ -77,6 +78,7 @@ CREATE OR REPLACE VIEW view_public_events AS
         aw.mediumimage as thumbnailUrl,
         aw.categoryCode AS categories,
         'awin' as origin,
+        NULL as imgId,
         aw.id as entityId
     FROM AwinProduct as aw
     WHERE

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

@@ -123,6 +123,9 @@ class PublicEvent
     #[ORM\Column]
     private int $priceMaxi;
 
+    #[ORM\Column]
+    private int $imgId;
+
     // categoryCode
     #[ORM\Column]
     private ?string $categoryCode;
@@ -441,6 +444,18 @@ class PublicEvent
         return $this;
     }
 
+    public function getImgId(): int
+    {
+        return $this->imgId;
+    }
+
+    public function setImgId(int $imgId): PublicEvent
+    {
+        $this->imgId = $imgId;
+
+        return $this;
+    }
+
     public function getCategoryCode(): ?string
     {
         return $this->categoryCode;