mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-12 23:56:29 +03:00
Update Flex endpoint
This commit is contained in:
+34
-34
@@ -13,36 +13,12 @@
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"src/Entity/AttributeValue.php": {
|
||||
"config/packages/msgphp_eav.yaml": {
|
||||
"contents": [
|
||||
"<?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;",
|
||||
" }",
|
||||
"}",
|
||||
"msgphp_eav:",
|
||||
" class_mapping:",
|
||||
" MsgPhp\\Eav\\Attribute: App\\Entity\\Attribute",
|
||||
" MsgPhp\\Eav\\AttributeValue: App\\Entity\\AttributeValue",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
@@ -79,12 +55,36 @@
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/msgphp_eav.yaml": {
|
||||
"src/Entity/AttributeValue.php": {
|
||||
"contents": [
|
||||
"msgphp_eav:",
|
||||
" class_mapping:",
|
||||
" MsgPhp\\Eav\\Attribute: App\\Entity\\Attribute",
|
||||
" MsgPhp\\Eav\\AttributeValue: App\\Entity\\AttributeValue",
|
||||
"<?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;",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
|
||||
Reference in New Issue
Block a user