aboutsummaryrefslogtreecommitdiff
path: root/src/model/entities/NodeData.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/entities/NodeData.php')
-rw-r--r--src/model/entities/NodeData.php12
1 files changed, 12 insertions, 0 deletions
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
24 #[ORM\JoinColumn(name: "node_id", referencedColumnName: "id_node", onDelete: "CASCADE")] 24 #[ORM\JoinColumn(name: "node_id", referencedColumnName: "id_node", onDelete: "CASCADE")]
25 private Node $node; 25 private Node $node;
26 26
27 #[ORM\ManyToOne(targetEntity: Presentation::class)]
28 #[ORM\JoinColumn(name: "presentation_id", referencedColumnName: "id_presentation", nullable: true)]
29 private Presentation $presentation;
30
27 #[ORM\Column(type: "json")] 31 #[ORM\Column(type: "json")]
28 private array $data; 32 private array $data;
29 33
@@ -47,6 +51,14 @@ class NodeData
47 { 51 {
48 return $this->id_node_data; 52 return $this->id_node_data;
49 } 53 }
54 public function getPresentation(): Presentation
55 {
56 return $this->presentation;
57 }
58 public function setPresentation(Presentation $presentation): void
59 {
60 $this->presentation = $presentation;
61 }
50 public function getData(): array 62 public function getData(): array
51 { 63 {
52 return $this->data; 64 return $this->data;