/**
  * {@inheritDoc}
  */
 public function load(ObjectManager $manager)
 {
     foreach (self::$samples as $name) {
         $orderStatusGroup = new OrderStatusGroup();
         $orderStatusGroup->translate('en')->setName($name);
         $orderStatusGroup->mergeNewTranslations();
         $manager->persist($orderStatusGroup);
         $this->setReference('order_status_group_' . $name, $orderStatusGroup);
     }
     $manager->flush();
 }
 /**
  * {@inheritDoc}
  */
 public function load(ObjectManager $manager)
 {
     if (!$this->isEnabled()) {
         return;
     }
     foreach (self::$samples as $name) {
         $orderStatusGroup = new OrderStatusGroup();
         $orderStatusGroup->translate($this->container->getParameter('locale'))->setName($name);
         $orderStatusGroup->mergeNewTranslations();
         $manager->persist($orderStatusGroup);
         $this->setReference('order_status_group_' . $name, $orderStatusGroup);
     }
     $manager->flush();
 }