Call to undefined method Menu::getId()