From ebb164c0c998b6ec50e5e13a718b307cac3ac22e Mon Sep 17 00:00:00 2001 From: Roland Franssen Date: Tue, 27 Mar 2018 21:12:13 +0200 Subject: [PATCH] [MsgPhpEavBundle] enable doctrine mapping --- msgphp/eav-bundle/0.2/src/Entity/Eav/Attribute.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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..9448fed5 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)