-
-
Notifications
You must be signed in to change notification settings - Fork 960
Closed
Description
API Platform version(s) affected: 3.1.14
Description
I got an error after upgrading from 3.1.4 to 3.1.14: Warning: Trying to access array offset on value of type null
{
"@context": "/contexts/Error",
"@type": "hydra:Error",
"hydra:title": "An error occurred",
"hydra:description": "Warning: Trying to access array offset on value of type null",
"trace": [
{
"namespace": "",
"short_class": "",
"class": "",
"type": "",
"function": "",
"file": "/srv/backend/vendor/api-platform/core/src/Api/IdentifiersExtractor.php",
"line": 87,
"args": []
},
{
"namespace": "ApiPlatform\\Api",
"short_class": "IdentifiersExtractor",
"class": "ApiPlatform\\Api\\IdentifiersExtractor",
"type": "->",
"function": "getIdentifiersFromOperation",
"file": "/srv/backend/vendor/api-platform/core/src/Api/IdentifiersExtractor.php",
"line": 57,
"args": [
[
"object",
"App\\Entity\\ParentClassValue"
],
[
"object",
"ApiPlatform\\Metadata\\NotExposed"
],
[
"array",
{
"skip_null_values": [
"boolean",
false
],
"groups": [
"array",
[
[
"string",
"parentClass:get"
]
]
],
"resource_class": [
"string",
"App\\Entity\\ParentClassValue"
],
"iri_only": [
"boolean",
false
],
"request_uri": [
"string",
"/securities/20"
],
"uri": [
"string",
"https://rest.local.redacted.com/securities/20"
],
"input": [
"null",
null
],
"output": [
"null",
null
],
"collect_denormalization_errors": [
"boolean",
true
],
"exclude_from_cache_key": [
"array",
[
[
"string",
"root_operation"
],
[
"string",
"operation"
],
[
"string",
"resources"
],
[
"string",
"resources_to_push"
]
]
],
"resources": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"resources_to_push": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"debug_trace_id": [
"string",
"64e0e31706423"
],
"api_sub_level": [
"boolean",
true
],
"jsonld_has_context": [
"boolean",
true
],
"api_normalize": [
"boolean",
true
],
"cache_key": [
"string",
"8d2c702ddd4e191de0dc69b6820c6db8"
],
"circular_reference_limit_counters": [
"array",
{
"00000000000006c50000000000000000": [
"integer",
1
]
}
],
"api_attribute": [
"string",
"parentClassValues"
],
"operation": [
"object",
"ApiPlatform\\Metadata\\NotExposed"
],
"operation_name": [
"string",
"_api_/parentClass_values/{id}{._format}_get"
]
}
]
]
},
{
"namespace": "ApiPlatform\\Api",
"short_class": "IdentifiersExtractor",
"class": "ApiPlatform\\Api\\IdentifiersExtractor",
"type": "->",
"function": "getIdentifiersFromItem",
"file": "/srv/backend/vendor/api-platform/core/src/Symfony/Routing/IriConverter.php",
"line": 177,
"args": [
[
"object",
"App\\Entity\\ParentClassValue"
],
[
"object",
"ApiPlatform\\Metadata\\NotExposed"
],
[
"array",
{
"skip_null_values": [
"boolean",
false
],
"groups": [
"array",
[
[
"string",
"parentClass:get"
]
]
],
"resource_class": [
"string",
"App\\Entity\\ParentClassValue"
],
"iri_only": [
"boolean",
false
],
"request_uri": [
"string",
"/securities/20"
],
"uri": [
"string",
"https://rest.local.redacted.com/securities/20"
],
"input": [
"null",
null
],
"output": [
"null",
null
],
"collect_denormalization_errors": [
"boolean",
true
],
"exclude_from_cache_key": [
"array",
[
[
"string",
"root_operation"
],
[
"string",
"operation"
],
[
"string",
"resources"
],
[
"string",
"resources_to_push"
]
]
],
"resources": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"resources_to_push": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"debug_trace_id": [
"string",
"64e0e31706423"
],
"api_sub_level": [
"boolean",
true
],
"jsonld_has_context": [
"boolean",
true
],
"api_normalize": [
"boolean",
true
],
"cache_key": [
"string",
"8d2c702ddd4e191de0dc69b6820c6db8"
],
"circular_reference_limit_counters": [
"array",
{
"00000000000006c50000000000000000": [
"integer",
1
]
}
],
"api_attribute": [
"string",
"parentClassValues"
],
"operation": [
"object",
"ApiPlatform\\Metadata\\NotExposed"
],
"operation_name": [
"string",
"_api_/parentClass_values/{id}{._format}_get"
]
}
]
]
},
{
"namespace": "ApiPlatform\\Symfony\\Routing",
"short_class": "IriConverter",
"class": "ApiPlatform\\Symfony\\Routing\\IriConverter",
"type": "->",
"function": "generateSymfonyRoute",
"file": "/srv/backend/vendor/api-platform/core/src/Symfony/Routing/IriConverter.php",
"line": 158,
"args": [
[
"object",
"App\\Entity\\ParentClassValue"
],
[
"integer",
1
],
[
"object",
"ApiPlatform\\Metadata\\NotExposed"
],
[
"array",
{
"skip_null_values": [
"boolean",
false
],
"groups": [
"array",
[
[
"string",
"parentClass:get"
]
]
],
"resource_class": [
"string",
"App\\Entity\\ParentClassValue"
],
"iri_only": [
"boolean",
false
],
"request_uri": [
"string",
"/securities/20"
],
"uri": [
"string",
"https://rest.local.redacted.com/securities/20"
],
"input": [
"null",
null
],
"output": [
"null",
null
],
"collect_denormalization_errors": [
"boolean",
true
],
"exclude_from_cache_key": [
"array",
[
[
"string",
"root_operation"
],
[
"string",
"operation"
],
[
"string",
"resources"
],
[
"string",
"resources_to_push"
]
]
],
"resources": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"resources_to_push": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"debug_trace_id": [
"string",
"64e0e31706423"
],
"api_sub_level": [
"boolean",
true
],
"jsonld_has_context": [
"boolean",
true
],
"api_normalize": [
"boolean",
true
],
"cache_key": [
"string",
"8d2c702ddd4e191de0dc69b6820c6db8"
],
"circular_reference_limit_counters": [
"array",
{
"00000000000006c50000000000000000": [
"integer",
1
]
}
],
"api_attribute": [
"string",
"parentClassValues"
],
"operation": [
"object",
"ApiPlatform\\Metadata\\NotExposed"
],
"operation_name": [
"string",
"_api_/parentClass_values/{id}{._format}_get"
]
}
],
[
"object",
"ApiPlatform\\Metadata\\NotExposed"
]
]
},
{
"namespace": "ApiPlatform\\Symfony\\Routing",
"short_class": "IriConverter",
"class": "ApiPlatform\\Symfony\\Routing\\IriConverter",
"type": "->",
"function": "getIriFromResource",
"file": "/srv/backend/vendor/api-platform/core/src/JsonLd/Serializer/ItemNormalizer.php",
"line": 106,
"args": [
[
"object",
"App\\Entity\\ParentClassValue"
],
[
"integer",
1
],
[
"object",
"ApiPlatform\\Metadata\\NotExposed"
],
[
"array",
{
"skip_null_values": [
"boolean",
false
],
"groups": [
"array",
[
[
"string",
"parentClass:get"
]
]
],
"resource_class": [
"string",
"App\\Entity\\ParentClassValue"
],
"iri_only": [
"boolean",
false
],
"request_uri": [
"string",
"/securities/20"
],
"uri": [
"string",
"https://rest.local.redacted.com/securities/20"
],
"input": [
"null",
null
],
"output": [
"null",
null
],
"collect_denormalization_errors": [
"boolean",
true
],
"exclude_from_cache_key": [
"array",
[
[
"string",
"root_operation"
],
[
"string",
"operation"
],
[
"string",
"resources"
],
[
"string",
"resources_to_push"
]
]
],
"resources": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"resources_to_push": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"debug_trace_id": [
"string",
"64e0e31706423"
],
"api_sub_level": [
"boolean",
true
],
"jsonld_has_context": [
"boolean",
true
],
"api_normalize": [
"boolean",
true
],
"cache_key": [
"string",
"8d2c702ddd4e191de0dc69b6820c6db8"
],
"circular_reference_limit_counters": [
"array",
{
"00000000000006c50000000000000000": [
"integer",
1
]
}
],
"api_attribute": [
"string",
"parentClassValues"
],
"operation": [
"object",
"ApiPlatform\\Metadata\\NotExposed"
],
"operation_name": [
"string",
"_api_/parentClass_values/{id}{._format}_get"
]
}
]
]
},
{
"namespace": "ApiPlatform\\JsonLd\\Serializer",
"short_class": "ItemNormalizer",
"class": "ApiPlatform\\JsonLd\\Serializer\\ItemNormalizer",
"type": "->",
"function": "normalize",
"file": "/srv/backend/vendor/symfony/serializer/Debug/TraceableNormalizer.php",
"line": 58,
"args": [
[
"object",
"App\\Entity\\ParentClassValue"
],
[
"string",
"jsonld"
],
[
"array",
{
"skip_null_values": [
"boolean",
false
],
"groups": [
"array",
[
[
"string",
"parentClass:get"
]
]
],
"resource_class": [
"string",
"App\\Entity\\ParentClassValue"
],
"iri_only": [
"boolean",
false
],
"request_uri": [
"string",
"/securities/20"
],
"uri": [
"string",
"https://rest.local.redacted.com/securities/20"
],
"input": [
"null",
null
],
"output": [
"null",
null
],
"collect_denormalization_errors": [
"boolean",
true
],
"exclude_from_cache_key": [
"array",
[
[
"string",
"root_operation"
],
[
"string",
"operation"
],
[
"string",
"resources"
],
[
"string",
"resources_to_push"
]
]
],
"resources": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"resources_to_push": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"debug_trace_id": [
"string",
"64e0e31706423"
],
"api_sub_level": [
"boolean",
true
],
"jsonld_has_context": [
"boolean",
true
],
"api_normalize": [
"boolean",
true
],
"cache_key": [
"string",
"8d2c702ddd4e191de0dc69b6820c6db8"
],
"circular_reference_limit_counters": [
"array",
{
"00000000000006c50000000000000000": [
"integer",
1
]
}
],
"api_attribute": [
"string",
"parentClassValues"
],
"operation": [
"object",
"ApiPlatform\\Metadata\\NotExposed"
],
"operation_name": [
"string",
"_api_/parentClass_values/{id}{._format}_get"
]
}
]
]
},
{
"namespace": "Symfony\\Component\\Serializer\\Debug",
"short_class": "TraceableNormalizer",
"class": "Symfony\\Component\\Serializer\\Debug\\TraceableNormalizer",
"type": "->",
"function": "normalize",
"file": "/srv/backend/vendor/symfony/serializer/Serializer.php",
"line": 159,
"args": [
[
"object",
"App\\Entity\\ParentClassValue"
],
[
"string",
"jsonld"
],
[
"array",
{
"skip_null_values": [
"boolean",
false
],
"groups": [
"array",
[
[
"string",
"parentClass:get"
]
]
],
"resource_class": [
"string",
"App\\Entity\\ParentClassValue"
],
"iri_only": [
"boolean",
false
],
"request_uri": [
"string",
"/securities/20"
],
"uri": [
"string",
"https://rest.local.redacted.com/securities/20"
],
"input": [
"null",
null
],
"output": [
"null",
null
],
"collect_denormalization_errors": [
"boolean",
true
],
"exclude_from_cache_key": [
"array",
[
[
"string",
"root_operation"
],
[
"string",
"operation"
],
[
"string",
"resources"
],
[
"string",
"resources_to_push"
]
]
],
"resources": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"resources_to_push": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"debug_trace_id": [
"string",
"64e0e31706423"
],
"api_sub_level": [
"boolean",
true
],
"jsonld_has_context": [
"boolean",
true
],
"api_normalize": [
"boolean",
true
],
"cache_key": [
"string",
"8d2c702ddd4e191de0dc69b6820c6db8"
],
"circular_reference_limit_counters": [
"array",
{
"00000000000006c50000000000000000": [
"integer",
1
]
}
],
"api_attribute": [
"string",
"parentClassValues"
],
"operation": [
"object",
"ApiPlatform\\Metadata\\NotExposed"
],
"operation_name": [
"string",
"_api_/parentClass_values/{id}{._format}_get"
]
}
]
]
},
{
"namespace": "Symfony\\Component\\Serializer",
"short_class": "Serializer",
"class": "Symfony\\Component\\Serializer\\Serializer",
"type": "->",
"function": "normalize",
"file": "/srv/backend/vendor/api-platform/core/src/Serializer/AbstractItemNormalizer.php",
"line": 721,
"args": [
[
"object",
"App\\Entity\\ParentClassValue"
],
[
"string",
"jsonld"
],
[
"array",
{
"skip_null_values": [
"boolean",
false
],
"groups": [
"array",
[
[
"string",
"parentClass:get"
]
]
],
"resource_class": [
"string",
"App\\Entity\\ParentClassValue"
],
"iri_only": [
"boolean",
false
],
"request_uri": [
"string",
"/securities/20"
],
"uri": [
"string",
"https://rest.local.redacted.com/securities/20"
],
"input": [
"null",
null
],
"output": [
"null",
null
],
"collect_denormalization_errors": [
"boolean",
true
],
"exclude_from_cache_key": [
"array",
[
[
"string",
"root_operation"
],
[
"string",
"operation"
],
[
"string",
"resources"
],
[
"string",
"resources_to_push"
]
]
],
"resources": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"resources_to_push": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"debug_trace_id": [
"string",
"64e0e31706423"
],
"api_sub_level": [
"boolean",
true
],
"jsonld_has_context": [
"boolean",
true
],
"api_normalize": [
"boolean",
true
],
"cache_key": [
"string",
"8d2c702ddd4e191de0dc69b6820c6db8"
],
"circular_reference_limit_counters": [
"array",
{
"00000000000006c50000000000000000": [
"integer",
1
]
}
],
"api_attribute": [
"string",
"parentClassValues"
],
"operation": [
"object",
"ApiPlatform\\Metadata\\NotExposed"
],
"operation_name": [
"string",
"_api_/parentClass_values/{id}{._format}_get"
]
}
]
]
},
{
"namespace": "ApiPlatform\\Serializer",
"short_class": "AbstractItemNormalizer",
"class": "ApiPlatform\\Serializer\\AbstractItemNormalizer",
"type": "->",
"function": "normalizeRelation",
"file": "/srv/backend/vendor/api-platform/core/src/Serializer/AbstractItemNormalizer.php",
"line": 700,
"args": [
[
"object",
"ApiPlatform\\Metadata\\ApiProperty"
],
[
"object",
"App\\Entity\\ParentClassValue"
],
[
"string",
"App\\Entity\\ParentClassValue"
],
[
"string",
"jsonld"
],
[
"array",
{
"skip_null_values": [
"boolean",
false
],
"groups": [
"array",
[
[
"string",
"parentClass:get"
]
]
],
"resource_class": [
"string",
"App\\Entity\\ParentClassValue"
],
"iri_only": [
"boolean",
false
],
"request_uri": [
"string",
"/securities/20"
],
"uri": [
"string",
"https://rest.local.redacted.com/securities/20"
],
"input": [
"null",
null
],
"output": [
"null",
null
],
"collect_denormalization_errors": [
"boolean",
true
],
"exclude_from_cache_key": [
"array",
[
[
"string",
"root_operation"
],
[
"string",
"operation"
],
[
"string",
"resources"
],
[
"string",
"resources_to_push"
]
]
],
"resources": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"resources_to_push": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"debug_trace_id": [
"string",
"64e0e31706423"
],
"api_sub_level": [
"boolean",
true
],
"jsonld_has_context": [
"boolean",
true
],
"api_normalize": [
"boolean",
true
],
"cache_key": [
"string",
"8d2c702ddd4e191de0dc69b6820c6db8"
],
"circular_reference_limit_counters": [
"array",
{
"00000000000006c50000000000000000": [
"integer",
1
]
}
],
"api_attribute": [
"string",
"parentClassValues"
],
"operation": [
"object",
"ApiPlatform\\Metadata\\NotExposed"
],
"operation_name": [
"string",
"_api_/parentClass_values/{id}{._format}_get"
]
}
]
]
},
{
"namespace": "ApiPlatform\\Serializer",
"short_class": "AbstractItemNormalizer",
"class": "ApiPlatform\\Serializer\\AbstractItemNormalizer",
"type": "->",
"function": "normalizeCollectionOfRelations",
"file": "/srv/backend/vendor/api-platform/core/src/Serializer/AbstractItemNormalizer.php",
"line": 638,
"args": [
[
"object",
"ApiPlatform\\Metadata\\ApiProperty"
],
[
"object",
"Doctrine\\ORM\\PersistentCollection"
],
[
"string",
"App\\Entity\\ParentClassValue"
],
[
"string",
"jsonld"
],
[
"array",
{
"skip_null_values": [
"boolean",
false
],
"groups": [
"array",
[
[
"string",
"parentClass:get"
]
]
],
"resource_class": [
"string",
"App\\Entity\\ParentClassValue"
],
"iri_only": [
"boolean",
false
],
"request_uri": [
"string",
"/securities/20"
],
"uri": [
"string",
"https://rest.local.redacted.com/securities/20"
],
"input": [
"null",
null
],
"output": [
"null",
null
],
"collect_denormalization_errors": [
"boolean",
true
],
"exclude_from_cache_key": [
"array",
[
[
"string",
"root_operation"
],
[
"string",
"operation"
],
[
"string",
"resources"
],
[
"string",
"resources_to_push"
]
]
],
"resources": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"resources_to_push": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"debug_trace_id": [
"string",
"64e0e31706423"
],
"api_sub_level": [
"boolean",
true
],
"jsonld_has_context": [
"boolean",
true
],
"api_normalize": [
"boolean",
true
],
"cache_key": [
"string",
"8d2c702ddd4e191de0dc69b6820c6db8"
],
"circular_reference_limit_counters": [
"array",
{
"00000000000006c50000000000000000": [
"integer",
1
]
}
],
"api_attribute": [
"string",
"parentClassValues"
],
"operation": [
"object",
"ApiPlatform\\Metadata\\NotExposed"
],
"operation_name": [
"string",
"_api_/parentClass_values/{id}{._format}_get"
]
}
]
]
},
{
"namespace": "ApiPlatform\\Serializer",
"short_class": "AbstractItemNormalizer",
"class": "ApiPlatform\\Serializer\\AbstractItemNormalizer",
"type": "->",
"function": "getAttributeValue",
"file": "/srv/backend/vendor/symfony/serializer/Normalizer/AbstractObjectNormalizer.php",
"line": 189,
"args": [
[
"object",
"App\\Entity\\Child"
],
[
"string",
"parentClassValues"
],
[
"string",
"jsonld"
],
[
"array",
{
"skip_null_values": [
"boolean",
false
],
"groups": [
"array",
[
[
"string",
"parentClass:get"
]
]
],
"resource_class": [
"string",
"App\\Entity\\Child"
],
"iri_only": [
"boolean",
false
],
"request_uri": [
"string",
"/securities/20"
],
"uri": [
"string",
"https://rest.local.redacted.com/securities/20"
],
"input": [
"null",
null
],
"output": [
"null",
null
],
"uri_variables": [
"array",
{
"id": [
"string",
"20"
]
}
],
"collect_denormalization_errors": [
"boolean",
true
],
"exclude_from_cache_key": [
"array",
[
[
"string",
"root_operation"
],
[
"string",
"operation"
],
[
"string",
"resources"
],
[
"string",
"resources_to_push"
]
]
],
"resources": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"resources_to_push": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"debug_trace_id": [
"string",
"64e0e31706423"
],
"api_sub_level": [
"boolean",
true
],
"jsonld_has_context": [
"boolean",
true
],
"iri": [
"string",
"/childs/20"
],
"api_normalize": [
"boolean",
true
],
"cache_key": [
"string",
"b6a05bdc577ccca2b885c547c2eb2993"
],
"circular_reference_limit_counters": [
"array",
{
"00000000000006c50000000000000000": [
"integer",
1
]
}
],
"api_attribute": [
"string",
"parentClassValues"
]
}
]
]
},
{
"namespace": "Symfony\\Component\\Serializer\\Normalizer",
"short_class": "AbstractObjectNormalizer",
"class": "Symfony\\Component\\Serializer\\Normalizer\\AbstractObjectNormalizer",
"type": "->",
"function": "normalize",
"file": "/srv/backend/vendor/api-platform/core/src/Serializer/AbstractItemNormalizer.php",
"line": 167,
"args": [
[
"object",
"App\\Entity\\Child"
],
[
"string",
"jsonld"
],
[
"array",
{
"skip_null_values": [
"boolean",
false
],
"groups": [
"array",
[
[
"string",
"parentClass:get"
]
]
],
"resource_class": [
"string",
"App\\Entity\\Child"
],
"iri_only": [
"boolean",
false
],
"request_uri": [
"string",
"/securities/20"
],
"uri": [
"string",
"https://rest.local.redacted.com/securities/20"
],
"input": [
"null",
null
],
"output": [
"null",
null
],
"uri_variables": [
"array",
{
"id": [
"string",
"20"
]
}
],
"collect_denormalization_errors": [
"boolean",
true
],
"exclude_from_cache_key": [
"array",
[
[
"string",
"root_operation"
],
[
"string",
"operation"
],
[
"string",
"resources"
],
[
"string",
"resources_to_push"
]
]
],
"resources": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"resources_to_push": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"debug_trace_id": [
"string",
"64e0e31706423"
],
"api_sub_level": [
"boolean",
true
],
"jsonld_has_context": [
"boolean",
true
],
"iri": [
"string",
"/childs/20"
],
"api_normalize": [
"boolean",
true
],
"cache_key": [
"string",
"b6a05bdc577ccca2b885c547c2eb2993"
],
"circular_reference_limit_counters": [
"array",
{
"00000000000006c50000000000000000": [
"integer",
1
]
}
]
}
]
]
},
{
"namespace": "ApiPlatform\\Serializer",
"short_class": "AbstractItemNormalizer",
"class": "ApiPlatform\\Serializer\\AbstractItemNormalizer",
"type": "->",
"function": "normalize",
"file": "/srv/backend/vendor/api-platform/core/src/JsonLd/Serializer/ItemNormalizer.php",
"line": 113,
"args": [
[
"object",
"App\\Entity\\Child"
],
[
"string",
"jsonld"
],
[
"array",
{
"skip_null_values": [
"boolean",
false
],
"groups": [
"array",
[
[
"string",
"parentClass:get"
]
]
],
"resource_class": [
"string",
"App\\Entity\\Child"
],
"iri_only": [
"boolean",
false
],
"request_uri": [
"string",
"/securities/20"
],
"uri": [
"string",
"https://rest.local.redacted.com/securities/20"
],
"input": [
"null",
null
],
"output": [
"null",
null
],
"uri_variables": [
"array",
{
"id": [
"string",
"20"
]
}
],
"collect_denormalization_errors": [
"boolean",
true
],
"exclude_from_cache_key": [
"array",
[
[
"string",
"root_operation"
],
[
"string",
"operation"
],
[
"string",
"resources"
],
[
"string",
"resources_to_push"
]
]
],
"resources": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"resources_to_push": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"debug_trace_id": [
"string",
"64e0e31706423"
],
"api_sub_level": [
"boolean",
true
],
"jsonld_has_context": [
"boolean",
true
],
"iri": [
"string",
"/childs/20"
],
"api_normalize": [
"boolean",
true
]
}
]
]
},
{
"namespace": "ApiPlatform\\JsonLd\\Serializer",
"short_class": "ItemNormalizer",
"class": "ApiPlatform\\JsonLd\\Serializer\\ItemNormalizer",
"type": "->",
"function": "normalize",
"file": "/srv/backend/vendor/symfony/serializer/Debug/TraceableNormalizer.php",
"line": 58,
"args": [
[
"object",
"App\\Entity\\Child"
],
[
"string",
"jsonld"
],
[
"array",
{
"skip_null_values": [
"boolean",
false
],
"groups": [
"array",
[
[
"string",
"parentClass:get"
]
]
],
"resource_class": [
"string",
"App\\Entity\\Child"
],
"iri_only": [
"boolean",
false
],
"request_uri": [
"string",
"/securities/20"
],
"uri": [
"string",
"https://rest.local.redacted.com/securities/20"
],
"input": [
"null",
null
],
"output": [
"null",
null
],
"uri_variables": [
"array",
{
"id": [
"string",
"20"
]
}
],
"collect_denormalization_errors": [
"boolean",
true
],
"exclude_from_cache_key": [
"array",
[
[
"string",
"root_operation"
],
[
"string",
"operation"
],
[
"string",
"resources"
],
[
"string",
"resources_to_push"
]
]
],
"resources": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"resources_to_push": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"debug_trace_id": [
"string",
"64e0e31706423"
],
"api_sub_level": [
"boolean",
true
],
"jsonld_has_context": [
"boolean",
true
],
"iri": [
"string",
"/childs/20"
],
"api_normalize": [
"boolean",
true
]
}
]
]
},
{
"namespace": "Symfony\\Component\\Serializer\\Debug",
"short_class": "TraceableNormalizer",
"class": "Symfony\\Component\\Serializer\\Debug\\TraceableNormalizer",
"type": "->",
"function": "normalize",
"file": "/srv/backend/vendor/symfony/serializer/Serializer.php",
"line": 159,
"args": [
[
"object",
"App\\Entity\\Child"
],
[
"string",
"jsonld"
],
[
"array",
{
"skip_null_values": [
"boolean",
false
],
"groups": [
"array",
[
[
"string",
"parentClass:get"
]
]
],
"operation_name": [
"string",
"_api_/securities/{id}{._format}_get"
],
"operation": [
"object",
"ApiPlatform\\Metadata\\Get"
],
"resource_class": [
"string",
"App\\Entity\\ParentClass"
],
"iri_only": [
"boolean",
false
],
"request_uri": [
"string",
"/securities/20"
],
"uri": [
"string",
"https://rest.local.redacted.com/securities/20"
],
"input": [
"null",
null
],
"output": [
"null",
null
],
"uri_variables": [
"array",
{
"id": [
"string",
"20"
]
}
],
"collect_denormalization_errors": [
"boolean",
true
],
"exclude_from_cache_key": [
"array",
[
[
"string",
"root_operation"
],
[
"string",
"operation"
],
[
"string",
"resources"
],
[
"string",
"resources_to_push"
]
]
],
"resources": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"resources_to_push": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"debug_trace_id": [
"string",
"64e0e31706423"
]
}
]
]
},
{
"namespace": "Symfony\\Component\\Serializer",
"short_class": "Serializer",
"class": "Symfony\\Component\\Serializer\\Serializer",
"type": "->",
"function": "normalize",
"file": "/srv/backend/vendor/symfony/serializer/Serializer.php",
"line": 138,
"args": [
[
"object",
"App\\Entity\\Child"
],
[
"string",
"jsonld"
],
[
"array",
{
"skip_null_values": [
"boolean",
false
],
"groups": [
"array",
[
[
"string",
"parentClass:get"
]
]
],
"operation_name": [
"string",
"_api_/securities/{id}{._format}_get"
],
"operation": [
"object",
"ApiPlatform\\Metadata\\Get"
],
"resource_class": [
"string",
"App\\Entity\\ParentClass"
],
"iri_only": [
"boolean",
false
],
"request_uri": [
"string",
"/securities/20"
],
"uri": [
"string",
"https://rest.local.redacted.com/securities/20"
],
"input": [
"null",
null
],
"output": [
"null",
null
],
"uri_variables": [
"array",
{
"id": [
"string",
"20"
]
}
],
"collect_denormalization_errors": [
"boolean",
true
],
"exclude_from_cache_key": [
"array",
[
[
"string",
"root_operation"
],
[
"string",
"operation"
],
[
"string",
"resources"
],
[
"string",
"resources_to_push"
]
]
],
"resources": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"resources_to_push": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"debug_trace_id": [
"string",
"64e0e31706423"
]
}
]
]
},
{
"namespace": "Symfony\\Component\\Serializer",
"short_class": "Serializer",
"class": "Symfony\\Component\\Serializer\\Serializer",
"type": "->",
"function": "serialize",
"file": "/srv/backend/vendor/symfony/serializer/Debug/TraceableSerializer.php",
"line": 47,
"args": [
[
"object",
"App\\Entity\\Child"
],
[
"string",
"jsonld"
],
[
"array",
{
"skip_null_values": [
"boolean",
false
],
"groups": [
"array",
[
[
"string",
"parentClass:get"
]
]
],
"operation_name": [
"string",
"_api_/securities/{id}{._format}_get"
],
"operation": [
"object",
"ApiPlatform\\Metadata\\Get"
],
"resource_class": [
"string",
"App\\Entity\\ParentClass"
],
"iri_only": [
"boolean",
false
],
"request_uri": [
"string",
"/securities/20"
],
"uri": [
"string",
"https://rest.local.redacted.com/securities/20"
],
"input": [
"null",
null
],
"output": [
"null",
null
],
"uri_variables": [
"array",
{
"id": [
"string",
"20"
]
}
],
"collect_denormalization_errors": [
"boolean",
true
],
"exclude_from_cache_key": [
"array",
[
[
"string",
"root_operation"
],
[
"string",
"operation"
],
[
"string",
"resources"
],
[
"string",
"resources_to_push"
]
]
],
"resources": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"resources_to_push": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"debug_trace_id": [
"string",
"64e0e31706423"
]
}
]
]
},
{
"namespace": "Symfony\\Component\\Serializer\\Debug",
"short_class": "TraceableSerializer",
"class": "Symfony\\Component\\Serializer\\Debug\\TraceableSerializer",
"type": "->",
"function": "serialize",
"file": "/srv/backend/vendor/api-platform/core/src/Symfony/EventListener/SerializeListener.php",
"line": 99,
"args": [
[
"object",
"App\\Entity\\Child"
],
[
"string",
"jsonld"
],
[
"array",
{
"skip_null_values": [
"boolean",
false
],
"groups": [
"array",
[
[
"string",
"parentClass:get"
]
]
],
"operation_name": [
"string",
"_api_/securities/{id}{._format}_get"
],
"operation": [
"object",
"ApiPlatform\\Metadata\\Get"
],
"resource_class": [
"string",
"App\\Entity\\ParentClass"
],
"iri_only": [
"boolean",
false
],
"request_uri": [
"string",
"/securities/20"
],
"uri": [
"string",
"https://rest.local.redacted.com/securities/20"
],
"input": [
"null",
null
],
"output": [
"null",
null
],
"uri_variables": [
"array",
{
"id": [
"string",
"20"
]
}
],
"collect_denormalization_errors": [
"boolean",
true
],
"exclude_from_cache_key": [
"array",
[
[
"string",
"root_operation"
],
[
"string",
"operation"
],
[
"string",
"resources"
],
[
"string",
"resources_to_push"
]
]
],
"resources": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"resources_to_push": [
"object",
"ApiPlatform\\Serializer\\ResourceList"
],
"debug_trace_id": [
"string",
"64e0e31706423"
]
}
]
]
},
{
"namespace": "ApiPlatform\\Symfony\\EventListener",
"short_class": "SerializeListener",
"class": "ApiPlatform\\Symfony\\EventListener\\SerializeListener",
"type": "->",
"function": "onKernelView",
"file": "/srv/backend/vendor/symfony/event-dispatcher/Debug/WrappedListener.php",
"line": 116,
"args": [
[
"object",
"Symfony\\Component\\HttpKernel\\Event\\ViewEvent"
],
[
"string",
"kernel.view"
],
[
"object",
"Symfony\\Component\\HttpKernel\\Debug\\TraceableEventDispatcher"
]
]
},
{
"namespace": "Symfony\\Component\\EventDispatcher\\Debug",
"short_class": "WrappedListener",
"class": "Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener",
"type": "->",
"function": "__invoke",
"file": "/srv/backend/vendor/symfony/event-dispatcher/EventDispatcher.php",
"line": 220,
"args": [
[
"object",
"Symfony\\Component\\HttpKernel\\Event\\ViewEvent"
],
[
"string",
"kernel.view"
],
[
"object",
"Symfony\\Component\\HttpKernel\\Debug\\TraceableEventDispatcher"
]
]
},
{
"namespace": "Symfony\\Component\\EventDispatcher",
"short_class": "EventDispatcher",
"class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
"type": "->",
"function": "callListeners",
"file": "/srv/backend/vendor/symfony/event-dispatcher/EventDispatcher.php",
"line": 56,
"args": [
[
"array",
[
[
"object",
"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"
]
]
],
[
"string",
"kernel.view"
],
[
"object",
"Symfony\\Component\\HttpKernel\\Event\\ViewEvent"
]
]
},
{
"namespace": "Symfony\\Component\\EventDispatcher",
"short_class": "EventDispatcher",
"class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
"type": "->",
"function": "dispatch",
"file": "/srv/backend/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php",
"line": 139,
"args": [
[
"object",
"Symfony\\Component\\HttpKernel\\Event\\ViewEvent"
],
[
"string",
"kernel.view"
]
]
},
{
"namespace": "Symfony\\Component\\EventDispatcher\\Debug",
"short_class": "TraceableEventDispatcher",
"class": "Symfony\\Component\\EventDispatcher\\Debug\\TraceableEventDispatcher",
"type": "->",
"function": "dispatch",
"file": "/srv/backend/vendor/symfony/http-kernel/HttpKernel.php",
"line": 171,
"args": [
[
"object",
"Symfony\\Component\\HttpKernel\\Event\\ViewEvent"
],
[
"string",
"kernel.view"
]
]
},
{
"namespace": "Symfony\\Component\\HttpKernel",
"short_class": "HttpKernel",
"class": "Symfony\\Component\\HttpKernel\\HttpKernel",
"type": "->",
"function": "handleRaw",
"file": "/srv/backend/vendor/symfony/http-kernel/HttpKernel.php",
"line": 74,
"args": [
[
"object",
"Symfony\\Component\\HttpFoundation\\Request"
],
[
"integer",
1
]
]
},
{
"namespace": "Symfony\\Component\\HttpKernel",
"short_class": "HttpKernel",
"class": "Symfony\\Component\\HttpKernel\\HttpKernel",
"type": "->",
"function": "handle",
"file": "/srv/backend/vendor/symfony/http-kernel/Kernel.php",
"line": 197,
"args": [
[
"object",
"Symfony\\Component\\HttpFoundation\\Request"
],
[
"integer",
1
],
[
"boolean",
true
]
]
},
{
"namespace": "Symfony\\Component\\HttpKernel",
"short_class": "Kernel",
"class": "Symfony\\Component\\HttpKernel\\Kernel",
"type": "->",
"function": "handle",
"file": "/srv/backend/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php",
"line": 35,
"args": [
[
"object",
"Symfony\\Component\\HttpFoundation\\Request"
]
]
},
{
"namespace": "Symfony\\Component\\Runtime\\Runner\\Symfony",
"short_class": "HttpKernelRunner",
"class": "Symfony\\Component\\Runtime\\Runner\\Symfony\\HttpKernelRunner",
"type": "->",
"function": "run",
"file": "/srv/backend/vendor/autoload_runtime.php",
"line": 29,
"args": []
},
{
"namespace": "",
"short_class": "",
"class": "",
"type": "",
"function": "require_once",
"file": "/srv/backend/public/index.php",
"line": 5,
"args": [
[
"string",
"/srv/backend/vendor/autoload_runtime.php"
]
]
}
]
}
How to reproduce
Create an entity with a child entity in doctrine (inheritance). Place a
#[ApiResource(
operations: [
new Get(
normalizationContext: ['groups' => ['security:get']],
security: 'is_granted(\'ROLE_ADMIN\')',
),
],
)]
on the parent and access the parent uri /parent/{id}
Possible Solution
Was working in 3.1.4
Additional Context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels