Skip to content

Instantly share code, notes, and snippets.

@blazarecki
Created December 28, 2015 10:30
Show Gist options
  • Save blazarecki/47a49457abac0ec6b88e to your computer and use it in GitHub Desktop.
Save blazarecki/47a49457abac0ec6b88e to your computer and use it in GitHub Desktop.
{
"@context": "/contexts/Error",
"@type": "Error",
"hydra:title": "An error occurred",
"hydra:description": "Class \"AppBundle\\Entity\\State\" have no identifier.",
"trace": [{
"namespace": "",
"short_class": "",
"class": "",
"type": "",
"function": "",
"file": "/var/www/html/vendor/dunglas/api-bundle/Mapping/Loader/LoaderChain.php",
"line": 85,
"args": []
}, {
"namespace": "Dunglas\\ApiBundle\\Mapping\\Loader",
"short_class": "LoaderChain",
"class": "Dunglas\\ApiBundle\\Mapping\\Loader\\LoaderChain",
"type": "->",
"function": "checkClassMetaData",
"file": "/var/www/html/vendor/dunglas/api-bundle/Mapping/Loader/LoaderChain.php",
"line": 72,
"args": [
[
"object",
"Dunglas\\ApiBundle\\Mapping\\ClassMetadata"
]
]
}, {
"namespace": "Dunglas\\ApiBundle\\Mapping\\Loader",
"short_class": "LoaderChain",
"class": "Dunglas\\ApiBundle\\Mapping\\Loader\\LoaderChain",
"type": "->",
"function": "loadClassMetadata",
"file": "/var/www/html/vendor/dunglas/api-bundle/Mapping/ClassMetadataFactory.php",
"line": 75,
"args": [
[
"object",
"Dunglas\\ApiBundle\\Mapping\\ClassMetadata"
],
[
"null",
null
],
[
"null",
null
],
[
"null",
null
]
]
}, {
"namespace": "Dunglas\\ApiBundle\\Mapping",
"short_class": "ClassMetadataFactory",
"class": "Dunglas\\ApiBundle\\Mapping\\ClassMetadataFactory",
"type": "->",
"function": "getMetadataFor",
"file": "/var/www/html/vendor/dunglas/api-bundle/JsonLd/Serializer/ItemNormalizer.php",
"line": 420,
"args": [
[
"string",
"AppBundle\\Entity\\State"
],
[
"null",
null
],
[
"null",
null
],
[
"null",
null
]
]
}, {
"namespace": "Dunglas\\ApiBundle\\JsonLd\\Serializer",
"short_class": "ItemNormalizer",
"class": "Dunglas\\ApiBundle\\JsonLd\\Serializer\\ItemNormalizer",
"type": "->",
"function": "getMetadata",
"file": "/var/www/html/vendor/dunglas/api-bundle/JsonLd/Serializer/ItemNormalizer.php",
"line": 119,
"args": [
[
"object",
"Dunglas\\ApiBundle\\Api\\Resource"
],
[
"array", {
"resource": [
"object",
"Dunglas\\ApiBundle\\Api\\Resource"
],
"request_uri": [
"string",
"/states"
],
"json_ld_has_context": [
"boolean",
true
],
"json_ld_sub_level": [
"boolean",
true
],
"json_ld_normalization_groups": [
"null",
null
],
"json_ld_denormalization_groups": [
"null",
null
],
"json_ld_validation_groups": [
"null",
null
],
"circular_reference_limit": [
"array", {
"0000000026f9dce40000000071f318c5": [
"string",
"1"
]
}
]
}
]
]
}, {
"namespace": "Dunglas\\ApiBundle\\JsonLd\\Serializer",
"short_class": "ItemNormalizer",
"class": "Dunglas\\ApiBundle\\JsonLd\\Serializer\\ItemNormalizer",
"type": "->",
"function": "normalize",
"file": "/var/www/html/vendor/symfony/symfony/src/Symfony/Component/Serializer/Serializer.php",
"line": 124,
"args": [
[
"object",
"AppBundle\\Entity\\State"
],
[
"string",
"json-ld"
],
[
"array", {
"resource": [
"object",
"Dunglas\\ApiBundle\\Api\\Resource"
],
"request_uri": [
"string",
"/states"
],
"json_ld_has_context": [
"boolean",
true
],
"json_ld_sub_level": [
"boolean",
true
],
"json_ld_normalization_groups": [
"null",
null
],
"json_ld_denormalization_groups": [
"null",
null
],
"json_ld_validation_groups": [
"null",
null
],
"circular_reference_limit": [
"array", {
"0000000026f9dce40000000071f318c5": [
"string",
"1"
]
}
]
}
]
]
}, {
"namespace": "Symfony\\Component\\Serializer",
"short_class": "Serializer",
"class": "Symfony\\Component\\Serializer\\Serializer",
"type": "->",
"function": "normalize",
"file": "/var/www/html/vendor/dunglas/api-bundle/Hydra/Serializer/CollectionNormalizer.php",
"line": 122,
"args": [
[
"object",
"AppBundle\\Entity\\State"
],
[
"string",
"json-ld"
],
[
"array", {
"resource": [
"object",
"Dunglas\\ApiBundle\\Api\\Resource"
],
"request_uri": [
"string",
"/states"
],
"json_ld_has_context": [
"boolean",
true
],
"json_ld_sub_level": [
"boolean",
true
],
"json_ld_normalization_groups": [
"null",
null
],
"json_ld_denormalization_groups": [
"null",
null
],
"json_ld_validation_groups": [
"null",
null
]
}
]
]
}, {
"namespace": "Dunglas\\ApiBundle\\Hydra\\Serializer",
"short_class": "CollectionNormalizer",
"class": "Dunglas\\ApiBundle\\Hydra\\Serializer\\CollectionNormalizer",
"type": "->",
"function": "normalize",
"file": "/var/www/html/vendor/symfony/symfony/src/Symfony/Component/Serializer/Serializer.php",
"line": 124,
"args": [
[
"array", [
[
"object",
"AppBundle\\Entity\\State"
],
[
"object",
"AppBundle\\Entity\\State"
],
[
"object",
"AppBundle\\Entity\\State"
],
[
"object",
"AppBundle\\Entity\\State"
],
[
"object",
"AppBundle\\Entity\\State"
],
[
"object",
"AppBundle\\Entity\\State"
]
]
],
[
"string",
"json-ld"
],
[
"array", {
"resource": [
"object",
"Dunglas\\ApiBundle\\Api\\Resource"
],
"request_uri": [
"string",
"/states"
],
"json_ld_has_context": [
"boolean",
true
],
"json_ld_sub_level": [
"boolean",
true
],
"json_ld_normalization_groups": [
"null",
null
],
"json_ld_denormalization_groups": [
"null",
null
],
"json_ld_validation_groups": [
"null",
null
]
}
]
]
}, {
"namespace": "Symfony\\Component\\Serializer",
"short_class": "Serializer",
"class": "Symfony\\Component\\Serializer\\Serializer",
"type": "->",
"function": "normalize",
"file": "/var/www/html/vendor/dunglas/api-bundle/Controller/ResourceController.php",
"line": 88,
"args": [
[
"array", [
[
"object",
"AppBundle\\Entity\\State"
],
[
"object",
"AppBundle\\Entity\\State"
],
[
"object",
"AppBundle\\Entity\\State"
],
[
"object",
"AppBundle\\Entity\\State"
],
[
"object",
"AppBundle\\Entity\\State"
],
[
"object",
"AppBundle\\Entity\\State"
]
]
],
[
"string",
"json-ld"
],
[
"array", {
"resource": [
"object",
"Dunglas\\ApiBundle\\Api\\Resource"
],
"request_uri": [
"string",
"/states"
]
}
]
]
}, {
"namespace": "Dunglas\\ApiBundle\\Controller",
"short_class": "ResourceController",
"class": "Dunglas\\ApiBundle\\Controller\\ResourceController",
"type": "->",
"function": "getSuccessResponse",
"file": "/var/www/html/vendor/dunglas/api-bundle/Controller/ResourceController.php",
"line": 161,
"args": [
[
"object",
"DunglasApiBundleApiResource_000000004d61bc5b00000000180b33e2e5139c916d21af4abfe5ffe5dd20d49e"
],
[
"array", [
[
"object",
"AppBundle\\Entity\\State"
],
[
"object",
"AppBundle\\Entity\\State"
],
[
"object",
"AppBundle\\Entity\\State"
],
[
"object",
"AppBundle\\Entity\\State"
],
[
"object",
"AppBundle\\Entity\\State"
],
[
"object",
"AppBundle\\Entity\\State"
]
]
],
[
"string",
"200"
],
[
"array", []
],
[
"array", {
"request_uri": [
"string",
"/states"
]
}
]
]
}, {
"namespace": "Dunglas\\ApiBundle\\Controller",
"short_class": "ResourceController",
"class": "Dunglas\\ApiBundle\\Controller\\ResourceController",
"type": "->",
"function": "cgetAction",
"file": null,
"line": null,
"args": [
[
"object",
"Symfony\\Component\\HttpFoundation\\Request"
]
]
}, {
"namespace": "",
"short_class": "",
"class": "",
"type": "",
"function": "call_user_func_array",
"file": "/var/www/html/app/bootstrap.php.cache",
"line": 3189,
"args": [
[
"array", [
[
"object",
"Dunglas\\ApiBundle\\Controller\\ResourceController"
],
[
"string",
"cgetAction"
]
]
],
[
"array", [
[
"object",
"Symfony\\Component\\HttpFoundation\\Request"
]
]
]
]
}, {
"namespace": "Symfony\\Component\\HttpKernel",
"short_class": "HttpKernel",
"class": "Symfony\\Component\\HttpKernel\\HttpKernel",
"type": "->",
"function": "handleRaw",
"file": "/var/www/html/app/bootstrap.php.cache",
"line": 3151,
"args": [
[
"object",
"Symfony\\Component\\HttpFoundation\\Request"
],
[
"string",
"1"
]
]
}, {
"namespace": "Symfony\\Component\\HttpKernel",
"short_class": "HttpKernel",
"class": "Symfony\\Component\\HttpKernel\\HttpKernel",
"type": "->",
"function": "handle",
"file": "/var/www/html/app/bootstrap.php.cache",
"line": 3302,
"args": [
[
"object",
"Symfony\\Component\\HttpFoundation\\Request"
],
[
"string",
"1"
],
[
"boolean",
true
]
]
}, {
"namespace": "Symfony\\Component\\HttpKernel\\DependencyInjection",
"short_class": "ContainerAwareHttpKernel",
"class": "Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel",
"type": "->",
"function": "handle",
"file": "/var/www/html/app/bootstrap.php.cache",
"line": 2498,
"args": [
[
"object",
"Symfony\\Component\\HttpFoundation\\Request"
],
[
"string",
"1"
],
[
"boolean",
true
]
]
}, {
"namespace": "Symfony\\Component\\HttpKernel",
"short_class": "Kernel",
"class": "Symfony\\Component\\HttpKernel\\Kernel",
"type": "->",
"function": "handle",
"file": "/var/www/html/web/app.php",
"line": 28,
"args": [
[
"object",
"Symfony\\Component\\HttpFoundation\\Request"
]
]
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment