Author: Adam Piotrowski (adam@wellcommerce.org)
Inheritance: implements WellCommerce\Bundle\ProductStatusBundle\Entity\ProductStatusInterface, use trait WellCommerce\Bundle\DoctrineBundle\Entity\IdentifiableTrait, use trait Knp\DoctrineBehaviors\Model\Translatable\Translatable, use trait Knp\DoctrineBehaviors\Model\Timestampable\Timestampable, use trait Knp\DoctrineBehaviors\Model\Blameable\Blameable
 /**
  * {@inheritDoc}
  */
 public function load(ObjectManager $manager)
 {
     if (!$this->isEnabled()) {
         return;
     }
     foreach (self::$samples as $name) {
         $status = new ProductStatus();
         $status->translate($this->getDefaultLocale())->setName($name);
         $status->translate($this->getDefaultLocale())->setSlug($slug = Sluggable::makeSlug($name));
         $status->translate($this->getDefaultLocale())->setCssClass($slug);
         $status->mergeNewTranslations();
         $manager->persist($status);
         $this->addReference('product_status_' . $name, $status);
     }
     $manager->flush();
 }
 public function create() : ProductStatusInterface
 {
     $status = new ProductStatus();
     $status->setSymbol('');
     return $status;
 }