File tree Expand file tree Collapse file tree 7 files changed +1
-104
lines changed
customized/App/Schema/Entity
original/App/Schema/Entity Expand file tree Collapse file tree 7 files changed +1
-104
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 19
19
use ApiPlatform \SchemaGenerator \AttributeGenerator \ConstraintAttributeGenerator ;
20
20
use ApiPlatform \SchemaGenerator \AttributeGenerator \DoctrineOrmAssociationOverrideAttributeGenerator ;
21
21
use ApiPlatform \SchemaGenerator \AttributeGenerator \DoctrineOrmAttributeGenerator ;
22
- use ApiPlatform \SchemaGenerator \AttributeGenerator \SerializerGroupsAttributeGenerator ;
23
22
use Symfony \Component \Config \Definition \Builder \NodeBuilder ;
24
23
use Symfony \Component \Config \Definition \Builder \TreeBuilder ;
25
24
use Symfony \Component \Config \Definition \ConfigurationInterface ;
@@ -266,7 +265,6 @@ public function getConfigTreeBuilder(): TreeBuilder
266
265
DoctrineOrmAssociationOverrideAttributeGenerator::class,
267
266
ApiPlatformCoreAttributeGenerator::class,
268
267
ConstraintAttributeGenerator::class,
269
- SerializerGroupsAttributeGenerator::class,
270
268
// Configuration attribute generator needs to be last to merge its attributes with previously generated ones.
271
269
ConfigurationAttributeGenerator::class,
272
270
])
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -266,7 +266,6 @@ interface: null
266
266
- ApiPlatform\SchemaGenerator\AttributeGenerator\DoctrineOrmAssociationOverrideAttributeGenerator
267
267
- ApiPlatform\SchemaGenerator\AttributeGenerator\ApiPlatformCoreAttributeGenerator
268
268
- ApiPlatform\SchemaGenerator\AttributeGenerator\ConstraintAttributeGenerator
269
- - ApiPlatform\SchemaGenerator\AttributeGenerator\SerializerGroupsAttributeGenerator
270
269
- ApiPlatform\SchemaGenerator\AttributeGenerator\ConfigurationAttributeGenerator
271
270
272
271
# Directories for custom generator twig templates
Original file line number Diff line number Diff line change 17
17
use Doctrine \Common \Collections \Collection ;
18
18
use Doctrine \ORM \Mapping as ORM ;
19
19
use Symfony \Bridge \Doctrine \Validator \Constraints \UniqueEntity ;
20
- use Symfony \Component \Serializer \Annotation \Groups ;
21
20
use Symfony \Component \Validator \Constraints as Assert ;
22
21
23
22
/**
@@ -69,7 +68,6 @@ class Person extends MyCustomClass implements MyCustomInterface
69
68
*/
70
69
#[ORM \Column(type: 'text ' , nullable: true )]
71
70
#[ApiProperty(types: ['https://schema.org/additionalName ' ])]
72
- #[Groups(['extra ' ])]
73
71
private ?string $ additionalName = null ;
74
72
75
73
/**
Original file line number Diff line number Diff line change 14
14
use Doctrine \Common \Collections \Collection ;
15
15
use Doctrine \ORM \Mapping as ORM ;
16
16
use Symfony \Bridge \Doctrine \Validator \Constraints \UniqueEntity ;
17
- use Symfony \Component \Serializer \Annotation \Groups ;
18
17
use Symfony \Component \Validator \Constraints as Assert ;
19
18
20
19
/**
@@ -60,7 +59,6 @@ class Person extends Thing
60
59
*/
61
60
#[ORM \Column(type: 'text ' , nullable: true )]
62
61
#[ApiProperty(types: ['https://schema.org/additionalName ' ])]
63
- #[Groups(['extra ' ])]
64
62
private ?string $ additionalName = null ;
65
63
66
64
/**
Original file line number Diff line number Diff line change 26
26
properties :
27
27
familyName : ~
28
28
givenName : ~
29
- additionalName : { groups: ['extra'] }
29
+ additionalName : ~
30
30
gender : { range: https://schema.org/GenderType }
31
31
address : { range: https://schema.org/PostalAddress }
32
32
birthDate : ~
You can’t perform that action at this time.
0 commit comments