From f27cca08ff786ceff1870147f6d6bad14d71117f Mon Sep 17 00:00:00 2001 From: polo Date: Fri, 23 Oct 2026 00:47:32 +0200 Subject: =?UTF-8?q?dossiers=20avec=20majuscule,=20namespace=20pour=20toute?= =?UTF-8?q?s=20les=20classes,=20autoload=20psr-4,=20UserDataService::creat?= =?UTF-8?q?eZip=20d=C3=A9plac=C3=A9=20dans=20Backup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/Menu.php | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 src/model/Menu.php (limited to 'src/model/Menu.php') diff --git a/src/model/Menu.php b/src/model/Menu.php deleted file mode 100644 index d277259..0000000 --- a/src/model/Menu.php +++ /dev/null @@ -1,42 +0,0 @@ -children = new ArrayCollection(); - - $bulk_data = $entityManager - ->createQuery('SELECT n FROM App\Entity\Page n WHERE n.parent IS null') // :Doctrine\ORM\Query - ->getResult(); // :array de Page - - foreach($bulk_data as $first_level_entries){ - // dans le menu - if($first_level_entries->isInMenu()){ - $this->addChild($first_level_entries); - } - // autres pages - else{ - // attention, seul le premier élément du chemin est pris en compte - $this->other_pages[] = $first_level_entries; - } - } - - foreach($this->getChildren() as $page){ - $page->fillChildrenPagePath(); - } - } - - public function getOtherPages(): array - { - return $this->other_pages; - } -} \ No newline at end of file -- cgit v1.2.3