From 9bcb43f264b7c0cd3fa98c612d31501db9a72317 Mon Sep 17 00:00:00 2001 From: Roland Franssen Date: Tue, 10 Apr 2018 18:31:37 +0200 Subject: [PATCH 1/2] [MsgPhpEavBundle] Add ORM GeneratedValue annotation --- 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 2457430b..6d7bf1c1 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\GeneratedValue() @ORM\Column(type="msgphp_attribute_id") */ private $id; public function __construct(AttributeIdInterface $id) From 117dd52129d22bf2ef5fa6becadfcc53157bafc8 Mon Sep 17 00:00:00 2001 From: Roland Franssen Date: Tue, 10 Apr 2018 18:32:06 +0200 Subject: [PATCH 2/2] 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 1767ece7..aefaa897 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\GeneratedValue() @ORM\Column(type="msgphp_attribute_value_id") */ private $id; public function __construct(AttributeValueIdInterface $id, Attribute $attribute, $value)