/**
  * {@inheritDoc}
  */
 public function load(ObjectManager $manager)
 {
     foreach ($this->getStatuses() as $sample) {
         $status = new OrderStatus();
         $status->setEnabled(1);
         $status->setOrderStatusGroup($this->getReference($sample['order_status_group_reference']));
         $status->translate('en')->setName($sample['name']);
         $status->translate('en')->setDefaultComment($sample['default_comment']);
         $status->mergeNewTranslations();
         $manager->persist($status);
         if (true === $sample['default']) {
             $this->setReference('default_order_status', $status);
         }
     }
     $manager->flush();
 }
 /**
  * @return \WellCommerce\AppBundle\Entity\OrderStatusInterface
  */
 public function create()
 {
     $status = new OrderStatus();
     $status->setEnabled(true);
     return $status;
 }