mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-19 19:16:32 +03:00
Update Flex endpoint
This commit is contained in:
@@ -13,6 +13,19 @@
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/sonata_classification.yaml": {
|
||||
"contents": [
|
||||
"sonata_classification:",
|
||||
" class:",
|
||||
" category: App\\Entity\\SonataClassificationCategory",
|
||||
" collection: App\\Entity\\SonataClassificationCollection",
|
||||
" context: App\\Entity\\SonataClassificationContext",
|
||||
" tag: App\\Entity\\SonataClassificationTag",
|
||||
" media: App\\Entity\\SonataMediaMedia",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/SonataClassificationCategory.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
@@ -162,71 +175,6 @@
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/SonataClassificationTag.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"declare(strict_types=1);",
|
||||
"",
|
||||
"namespace App\\Entity;",
|
||||
"",
|
||||
"use Doctrine\\ORM\\Mapping as ORM;",
|
||||
"use JMS\\Serializer\\Annotation as Serializer;",
|
||||
"use Sonata\\ClassificationBundle\\Entity\\BaseTag;",
|
||||
"",
|
||||
"/**",
|
||||
" * @ORM\\Entity",
|
||||
" * @ORM\\Table(name=\"classification__tag\")",
|
||||
" * @ORM\\HasLifecycleCallbacks",
|
||||
" */",
|
||||
"class SonataClassificationTag extends BaseTag",
|
||||
"{",
|
||||
" /**",
|
||||
" * @ORM\\Id",
|
||||
" * @ORM\\Column(type=\"integer\")",
|
||||
" * @ORM\\GeneratedValue(strategy=\"AUTO\")",
|
||||
" * // Serializer\\Groups(groups={\"sonata_api_read\", \"sonata_api_write\", \"sonata_search\"})",
|
||||
" *",
|
||||
" * @var int",
|
||||
" */",
|
||||
" protected $id;",
|
||||
"",
|
||||
" /**",
|
||||
" * @ORM\\ManyToOne(",
|
||||
" * targetEntity=\"App\\Entity\\SonataClassificationContext\",",
|
||||
" * cascade={\"persist\"}",
|
||||
" * )",
|
||||
" * @ORM\\JoinColumn(name=\"context\", referencedColumnName=\"id\", nullable=false)",
|
||||
" *",
|
||||
" * @var SonataClassificationContext",
|
||||
" */",
|
||||
" protected $context;",
|
||||
"",
|
||||
" public function getId()",
|
||||
" {",
|
||||
" return $this->id;",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @ORM\\PrePersist",
|
||||
" */",
|
||||
" public function prePersist(): void",
|
||||
" {",
|
||||
" parent::prePersist();",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @ORM\\PreUpdate",
|
||||
" */",
|
||||
" public function preUpdate(): void",
|
||||
" {",
|
||||
" parent::preUpdate();",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/SonataClassificationCollection.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
@@ -292,15 +240,67 @@
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/sonata_classification.yaml": {
|
||||
"src/Entity/SonataClassificationTag.php": {
|
||||
"contents": [
|
||||
"sonata_classification:",
|
||||
" class:",
|
||||
" category: App\\Entity\\SonataClassificationCategory",
|
||||
" collection: App\\Entity\\SonataClassificationCollection",
|
||||
" context: App\\Entity\\SonataClassificationContext",
|
||||
" tag: App\\Entity\\SonataClassificationTag",
|
||||
" media: App\\Entity\\SonataMediaMedia",
|
||||
"<?php",
|
||||
"",
|
||||
"declare(strict_types=1);",
|
||||
"",
|
||||
"namespace App\\Entity;",
|
||||
"",
|
||||
"use Doctrine\\ORM\\Mapping as ORM;",
|
||||
"use JMS\\Serializer\\Annotation as Serializer;",
|
||||
"use Sonata\\ClassificationBundle\\Entity\\BaseTag;",
|
||||
"",
|
||||
"/**",
|
||||
" * @ORM\\Entity",
|
||||
" * @ORM\\Table(name=\"classification__tag\")",
|
||||
" * @ORM\\HasLifecycleCallbacks",
|
||||
" */",
|
||||
"class SonataClassificationTag extends BaseTag",
|
||||
"{",
|
||||
" /**",
|
||||
" * @ORM\\Id",
|
||||
" * @ORM\\Column(type=\"integer\")",
|
||||
" * @ORM\\GeneratedValue(strategy=\"AUTO\")",
|
||||
" * // Serializer\\Groups(groups={\"sonata_api_read\", \"sonata_api_write\", \"sonata_search\"})",
|
||||
" *",
|
||||
" * @var int",
|
||||
" */",
|
||||
" protected $id;",
|
||||
"",
|
||||
" /**",
|
||||
" * @ORM\\ManyToOne(",
|
||||
" * targetEntity=\"App\\Entity\\SonataClassificationContext\",",
|
||||
" * cascade={\"persist\"}",
|
||||
" * )",
|
||||
" * @ORM\\JoinColumn(name=\"context\", referencedColumnName=\"id\", nullable=false)",
|
||||
" *",
|
||||
" * @var SonataClassificationContext",
|
||||
" */",
|
||||
" protected $context;",
|
||||
"",
|
||||
" public function getId()",
|
||||
" {",
|
||||
" return $this->id;",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @ORM\\PrePersist",
|
||||
" */",
|
||||
" public function prePersist(): void",
|
||||
" {",
|
||||
" parent::prePersist();",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @ORM\\PreUpdate",
|
||||
" */",
|
||||
" public function preUpdate(): void",
|
||||
" {",
|
||||
" parent::preUpdate();",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
|
||||
Reference in New Issue
Block a user