-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathProductOptionValue.php
44 lines (37 loc) · 1.3 KB
/
ProductOptionValue.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/*
* This file is part of Monsieur Biz' Advanced Option plugin for Sylius.
*
* (c) Monsieur Biz <[email protected]>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace App\Entity\Product;
use Doctrine\ORM\Mapping as ORM;
use MonsieurBiz\SyliusAdvancedOptionPlugin\Entity\ProductOption\RenderedOptionValueInterface;
use MonsieurBiz\SyliusAdvancedOptionPlugin\Entity\ProductOption\RenderedOptionValueTrait;
use Sylius\Component\Product\Model\ProductOptionValue as BaseProductOptionValue;
use Sylius\Component\Product\Model\ProductOptionValueTranslationInterface;
/**
* @ORM\Entity
* @ORM\Table(name="sylius_product_option_value")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_product_option_value')]
class ProductOptionValue extends BaseProductOptionValue implements RenderedOptionValueInterface
{
use RenderedOptionValueTrait {
RenderedOptionValueTrait::__construct as private initializeImagesCollection;
}
public function __construct()
{
$this->initializeImagesCollection();
parent::__construct();
}
protected function createTranslation(): ProductOptionValueTranslationInterface
{
return new ProductOptionValueTranslation();
}
}