src/Entity/Product/ProductOption.php line 15

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Product;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Sylius\Component\Product\Model\ProductOption as BaseProductOption;
  6. use Sylius\Component\Product\Model\ProductOptionTranslationInterface;
  7. /**
  8.  * @ORM\Entity
  9.  * @ORM\Table(name="sylius_product_option")
  10.  */
  11. class ProductOption extends BaseProductOption
  12. {
  13.     protected function createTranslation(): ProductOptionTranslationInterface
  14.     {
  15.         return new ProductOptionTranslation();
  16.     }
  17. }