Closed judimator closed 4 years ago
Did you try older version of this Bundle to know since when it's broken ?
I encountered this problem a while ago. If I remember correctly, I did this instead of code (even if they are equivalent)
$menu->addChild('Restaurant', $admin->generateMenuUrl('edit', ['id' => $id]));
$menu->addChild('Menu', $admin->generateMenuUrl('App\Admin\RestaurantAdmin|App\Admin\MenuAdmin.list', ['id' => $id]));
As you can see I'm calling from $menu
each time instead of chaining these commands.
Indeed! It really helped! I did not notice that this "tricky" fluent interface. Thanks a mil!
Indeed, from the phpdoc.
/**
* Add a child menu item to this menu
*
* Returns the child item
Environment
Sonata packages
Symfony packages
PHP version
Subject
Sidebar menu is broken
Steps to reproduce
Admin service following:
In RestaurantAdmin.php admin class following:
Expected results
Actual results