summaryrefslogtreecommitdiff
path: root/src/model/entities/Page.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/entities/Page.php')
-rw-r--r--src/model/entities/Page.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/model/entities/Page.php b/src/model/entities/Page.php
index 1ad9ddb..7448e5d 100644
--- a/src/model/entities/Page.php
+++ b/src/model/entities/Page.php
@@ -26,7 +26,7 @@ class Page
26 #[ORM\Column(type: "string", length: 255)] 26 #[ORM\Column(type: "string", length: 255)]
27 private string $end_of_path; // morceau d'URL plus exactement 27 private string $end_of_path; // morceau d'URL plus exactement
28 28
29 private string $page_path; 29 private string $page_path = '';
30 30
31 #[ORM\Column(type: "boolean")] 31 #[ORM\Column(type: "boolean")]
32 private bool $reachable; 32 private bool $reachable;
@@ -128,6 +128,7 @@ class Page
128 return $this->children; 128 return $this->children;
129 } 129 }
130 130
131 // utilisée par $menu_path
131 public function fillChildrenPagePath(string $parent_path = ''): void 132 public function fillChildrenPagePath(string $parent_path = ''): void
132 { 133 {
133 $this->page_path = $parent_path != '' ? $parent_path . '/' . $this->end_of_path : $this->end_of_path; 134 $this->page_path = $parent_path != '' ? $parent_path . '/' . $this->end_of_path : $this->end_of_path;