From ebb164c0c998b6ec50e5e13a718b307cac3ac22e Mon Sep 17 00:00:00 2001 From: Roland Franssen Date: Tue, 27 Mar 2018 21:12:13 +0200 Subject: [PATCH 1/4] [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) From 703e1e216b543ab19d08eb5a69faeaa3c83f5552 Mon Sep 17 00:00:00 2001 From: Roland Franssen Date: Tue, 27 Mar 2018 21:13:42 +0200 Subject: [PATCH 2/4] Update AttributeValue.php --- msgphp/eav-bundle/0.2/src/Entity/Eav/AttributeValue.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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..e4d2be84 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) From e928811629eb27b0ae0f86fc33cfa15b22c94e52 Mon Sep 17 00:00:00 2001 From: Roland Franssen Date: Tue, 27 Mar 2018 21:14:26 +0200 Subject: [PATCH 3/4] Update AttributeValue.php --- msgphp/eav-bundle/0.2/src/Entity/Eav/AttributeValue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e4d2be84..1767ece7 100644 --- a/msgphp/eav-bundle/0.2/src/Entity/Eav/AttributeValue.php +++ b/msgphp/eav-bundle/0.2/src/Entity/Eav/AttributeValue.php @@ -11,7 +11,7 @@ use MsgPhp\Eav\Entity\AttributeValue as BaseAttributeValue; */ class AttributeValue extends BaseAttributeValue { - /** @ORM\Id @ORM\Column(type="msgphp_attribute_value_id") */ + /** @ORM\Id() @ORM\Column(type="msgphp_attribute_value_id") */ private $id; public function __construct(AttributeValueIdInterface $id, Attribute $attribute, $value) From eff994c932a842b51c5dc406c5076c7414131b1d Mon Sep 17 00:00:00 2001 From: Roland Franssen Date: Tue, 27 Mar 2018 21:14:38 +0200 Subject: [PATCH 4/4] Update Attribute.php --- msgphp/eav-bundle/0.2/src/Entity/Eav/Attribute.php | 2 +- 1 file changed, 1 insertion(+), 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 9448fed5..2457430b 100644 --- a/msgphp/eav-bundle/0.2/src/Entity/Eav/Attribute.php +++ b/msgphp/eav-bundle/0.2/src/Entity/Eav/Attribute.php @@ -11,7 +11,7 @@ use MsgPhp\Eav\Entity\Attribute as BaseAttribute; */ class Attribute extends BaseAttribute { - /** @ORM\Id @ORM\Column(type="msgphp_attribute_id") */ + /** @ORM\Id() @ORM\Column(type="msgphp_attribute_id") */ private $id; public function __construct(AttributeIdInterface $id)