mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-14 16:46:30 +03:00
update msgphp bundles to 0.10
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use MsgPhp\Eav\AttributeValue as BaseAttributeValue;
|
||||
use MsgPhp\Eav\AttributeValueId;
|
||||
|
||||
/**
|
||||
* @ORM\Entity()
|
||||
*/
|
||||
class AttributeValue extends BaseAttributeValue
|
||||
{
|
||||
/** @ORM\Id() @ORM\GeneratedValue() @ORM\Column(type="msgphp_attribute_value_id", length=191) */
|
||||
private $id;
|
||||
|
||||
public function __construct(AttributeValueId $id, Attribute $attribute, $value)
|
||||
{
|
||||
parent::__construct($attribute, $value);
|
||||
|
||||
$this->id = $id;
|
||||
}
|
||||
|
||||
public function getId(): AttributeValueId
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user