diff --git a/msgphp/eav-bundle/0.2/src/Entity/Eav/Attribute.php b/msgphp/eav-bundle/0.2/src/Entity/Eav/Attribute.php index 74e10d42..2457430b 100644 --- a/msgphp/eav-bundle/0.2/src/Entity/Eav/Attribute.php +++ b/msgphp/eav-bundle/0.2/src/Entity/Eav/Attribute.php @@ -2,14 +2,16 @@ namespace App\Entity\Eav; +use Doctrine\ORM\Mapping as ORM; use MsgPhp\Eav\AttributeIdInterface; use MsgPhp\Eav\Entity\Attribute as BaseAttribute; /** - * @final + * @ORM\Entity() */ class Attribute extends BaseAttribute { + /** @ORM\Id() @ORM\Column(type="msgphp_attribute_id") */ private $id; public function __construct(AttributeIdInterface $id) diff --git a/msgphp/eav-bundle/0.2/src/Entity/Eav/AttributeValue.php b/msgphp/eav-bundle/0.2/src/Entity/Eav/AttributeValue.php index bf1d7a74..1767ece7 100644 --- a/msgphp/eav-bundle/0.2/src/Entity/Eav/AttributeValue.php +++ b/msgphp/eav-bundle/0.2/src/Entity/Eav/AttributeValue.php @@ -2,14 +2,16 @@ namespace App\Entity\Eav; +use Doctrine\ORM\Mapping as ORM; use MsgPhp\Eav\AttributeValueIdInterface; use MsgPhp\Eav\Entity\AttributeValue as BaseAttributeValue; /** - * @final + * @ORM\Entity() */ class AttributeValue extends BaseAttributeValue { + /** @ORM\Id() @ORM\Column(type="msgphp_attribute_value_id") */ private $id; public function __construct(AttributeValueIdInterface $id, Attribute $attribute, $value)