From f4df3e9b9df3d54ce58796f923da70ff7e566018 Mon Sep 17 00:00:00 2001 From: polo Date: Tue, 26 Aug 2025 01:15:33 +0200 Subject: =?UTF-8?q?s=C3=A9paration=20bloc=20/=20mise=20en=20page,=20bloc?= =?UTF-8?q?=20sp=C3=A9cial=20pour=20les=20actus,=20renommage=20de=20classe?= =?UTF-8?q?s,=20fichiers,=20etc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/entities/NodeData.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/model/entities/NodeData.php') diff --git a/src/model/entities/NodeData.php b/src/model/entities/NodeData.php index 758ccb7..c835727 100644 --- a/src/model/entities/NodeData.php +++ b/src/model/entities/NodeData.php @@ -24,6 +24,10 @@ class NodeData #[ORM\JoinColumn(name: "node_id", referencedColumnName: "id_node", onDelete: "CASCADE")] private Node $node; + #[ORM\ManyToOne(targetEntity: Presentation::class)] + #[ORM\JoinColumn(name: "presentation_id", referencedColumnName: "id_presentation", nullable: true)] + private Presentation $presentation; + #[ORM\Column(type: "json")] private array $data; @@ -47,6 +51,14 @@ class NodeData { return $this->id_node_data; } + public function getPresentation(): Presentation + { + return $this->presentation; + } + public function setPresentation(Presentation $presentation): void + { + $this->presentation = $presentation; + } public function getData(): array { return $this->data; -- cgit v1.2.3