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.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/model/entities/NodeData.php b/src/model/entities/NodeData.php
index 0d42f3a..1d7db4c 100644
--- a/src/model/entities/NodeData.php
+++ b/src/model/entities/NodeData.php
@@ -36,6 +36,9 @@ class NodeData
36 #[ORM\Column(type: "integer", nullable: true)] 36 #[ORM\Column(type: "integer", nullable: true)]
37 private ?int $grid_cols_min_width = null; // pour le mode grille 37 private ?int $grid_cols_min_width = null; // pour le mode grille
38 38
39 #[ORM\Column(type: "integer", nullable: true)]
40 private ?int $pagination_limit = null; // pour les post_block et news_block
41
39 // liaison avec table intermédiaire 42 // liaison avec table intermédiaire
40 #[ORM\ManyToMany(targetEntity: Image::class, inversedBy: "node_data")] 43 #[ORM\ManyToMany(targetEntity: Image::class, inversedBy: "node_data")]
41 #[ORM\JoinTable( 44 #[ORM\JoinTable(
@@ -105,6 +108,11 @@ class NodeData
105 { 108 {
106 $this->chrono_order = $reverse_order; 109 $this->chrono_order = $reverse_order;
107 } 110 }
111
112 public function getPaginationLimit(): ?int
113 {
114 return $this->pagination_limit ?? null;
115 }
108 116
109 /*public function setNode(Node $node): void 117 /*public function setNode(Node $node): void
110 { 118 {