From 027af942de75f7c5bc519fabfa5fa11de9bc89ea Mon Sep 17 00:00:00 2001 From: polo Date: Wed, 17 Sep 2025 16:52:43 +0200 Subject: =?UTF-8?q?optimisation=20r=C3=A9cursivit=C3=A9=20dans=20sortChild?= =?UTF-8?q?ren=20uniquement=20avec=20les=20pages,=20regression=20construct?= =?UTF-8?q?eur=20MenuBuilder?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controller/MenuAndPathsController.php | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/controller') diff --git a/src/controller/MenuAndPathsController.php b/src/controller/MenuAndPathsController.php index 5779b39..3ff7d54 100644 --- a/src/controller/MenuAndPathsController.php +++ b/src/controller/MenuAndPathsController.php @@ -101,7 +101,6 @@ class MenuAndPathsController //Director::$menu_data->addChild($page); // => pour sortChildren $page->getParent()->addChild($page); // => pour sortChildren - //Director::$menu_data->sortChildren(true); // positions décaléees des nouveaux petits frères $page->getParent()->sortChildren(true); // positions décaléees des nouveaux petits frères $page->setParent(null); @@ -116,7 +115,6 @@ class MenuAndPathsController $page->getParent()->sortChildren(true); // positions décaléees des nouveaux petits frères $page->fillChildrenPagePath($page->getParent()->getPagePath()); } - //$parent->sortChildren(true); // positions des enfants restants, inutile si la fonction est récursive? $entityManager->flush(); // affichage -- cgit v1.2.3