From 6ddffd80053e268789f1b168ff3a8ee223681e47 Mon Sep 17 00:00:00 2001 From: polo Date: Sun, 11 May 2025 17:45:14 +0200 Subject: =?UTF-8?q?cr=C3=A9ation=20de=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/entities/Page.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/model/entities/Page.php') 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 #[ORM\Column(type: "string", length: 255)] private string $end_of_path; // morceau d'URL plus exactement - private string $page_path; + private string $page_path = ''; #[ORM\Column(type: "boolean")] private bool $reachable; @@ -128,6 +128,7 @@ class Page return $this->children; } + // utilisée par $menu_path public function fillChildrenPagePath(string $parent_path = ''): void { $this->page_path = $parent_path != '' ? $parent_path . '/' . $this->end_of_path : $this->end_of_path; -- cgit v1.2.3