setName('Default menu'); $menu->setResolution('1920x1080'); $menu->setComments('Default menu comments'); $menu->setPublicUrl('main'); $menu->setDefault(true); $this->entityManager->persist($menu); $this->entityManager->flush(); return Command::SUCCESS; } }