Skip to content

Instantly share code, notes, and snippets.

@blazarecki
Created December 28, 2015 10:22
Show Gist options
  • Save blazarecki/9f981c4acc664a28fea9 to your computer and use it in GitHub Desktop.
Save blazarecki/9f981c4acc664a28fea9 to your computer and use it in GitHub Desktop.
{
"@context": "\/contexts\/Error",
"@type": "Error",
"hydra:title": "An error occurred",
"hydra:description": "Class \u0022AppBundle\\Entity\\State\u0022 is not a valid entity or mapped super class.",
"trace": [{
"namespace": "",
"short_class": "",
"class": "",
"type": "",
"function": "",
"file": "\/var\/www\/html\/vendor\/doctrine\/orm\/lib\/Doctrine\/ORM\/Mapping\/MappingException.php",
"line": 336,
"args": []
}, {
"namespace": "Doctrine\\ORM\\Mapping",
"short_class": "MappingException",
"class": "Doctrine\\ORM\\Mapping\\MappingException",
"type": "::",
"function": "classIsNotAValidEntityOrMappedSuperClass",
"file": "\/var\/www\/html\/vendor\/doctrine\/orm\/lib\/Doctrine\/ORM\/Mapping\/Driver\/AnnotationDriver.php",
"line": 89,
"args": [
["string", "AppBundle\\Entity\\State"]
]
}, {
"namespace": "Doctrine\\ORM\\Mapping\\Driver",
"short_class": "AnnotationDriver",
"class": "Doctrine\\ORM\\Mapping\\Driver\\AnnotationDriver",
"type": "-\u003E",
"function": "loadMetadataForClass",
"file": "\/var\/www\/html\/vendor\/doctrine\/common\/lib\/Doctrine\/Common\/Persistence\/Mapping\/Driver\/MappingDriverChain.php",
"line": 102,
"args": [
["string", "AppBundle\\Entity\\State"],
["object", "Doctrine\\ORM\\Mapping\\ClassMetadata"]
]
}, {
"namespace": "Doctrine\\Common\\Persistence\\Mapping\\Driver",
"short_class": "MappingDriverChain",
"class": "Doctrine\\Common\\Persistence\\Mapping\\Driver\\MappingDriverChain",
"type": "-\u003E",
"function": "loadMetadataForClass",
"file": "\/var\/www\/html\/vendor\/doctrine\/orm\/lib\/Doctrine\/ORM\/Mapping\/ClassMetadataFactory.php",
"line": 116,
"args": [
["string", "AppBundle\\Entity\\State"],
["object", "Doctrine\\ORM\\Mapping\\ClassMetadata"]
]
}, {
"namespace": "Doctrine\\ORM\\Mapping",
"short_class": "ClassMetadataFactory",
"class": "Doctrine\\ORM\\Mapping\\ClassMetadataFactory",
"type": "-\u003E",
"function": "doLoadMetadata",
"file": "\/var\/www\/html\/vendor\/doctrine\/common\/lib\/Doctrine\/Common\/Persistence\/Mapping\/AbstractClassMetadataFactory.php",
"line": 332,
"args": [
["object", "Doctrine\\ORM\\Mapping\\ClassMetadata"],
["null", null],
["boolean", false],
["array", []]
]
}, {
"namespace": "Doctrine\\Common\\Persistence\\Mapping",
"short_class": "AbstractClassMetadataFactory",
"class": "Doctrine\\Common\\Persistence\\Mapping\\AbstractClassMetadataFactory",
"type": "-\u003E",
"function": "loadMetadata",
"file": "\/var\/www\/html\/vendor\/doctrine\/common\/lib\/Doctrine\/Common\/Persistence\/Mapping\/AbstractClassMetadataFactory.php",
"line": 216,
"args": [
["string", "AppBundle\\Entity\\State"]
]
}, {
"namespace": "Doctrine\\Common\\Persistence\\Mapping",
"short_class": "AbstractClassMetadataFactory",
"class": "Doctrine\\Common\\Persistence\\Mapping\\AbstractClassMetadataFactory",
"type": "-\u003E",
"function": "getMetadataFor",
"file": "\/var\/www\/html\/vendor\/dunglas\/php-property-info\/src\/PropertyInfo\/Extractors\/DoctrineExtractor.php",
"line": 39,
"args": [
["string", "AppBundle\\Entity\\State"]
]
}, {
"namespace": "PropertyInfo\\Extractors",
"short_class": "DoctrineExtractor",
"class": "PropertyInfo\\Extractors\\DoctrineExtractor",
"type": "-\u003E",
"function": "extractTypes",
"file": "\/var\/www\/html\/vendor\/dunglas\/php-property-info\/src\/PropertyInfo\/PropertyInfo.php",
"line": 58,
"args": [
["object", "ReflectionProperty"]
]
}, {
"namespace": "PropertyInfo",
"short_class": "PropertyInfo",
"class": "PropertyInfo\\PropertyInfo",
"type": "-\u003E",
"function": "getTypes",
"file": "\/var\/www\/html\/vendor\/dunglas\/api-bundle\/Mapping\/Loader\/AttributesLoader.php",
"line": 198,
"args": [
["object", "ReflectionProperty"]
]
}, {
"namespace": "Dunglas\\ApiBundle\\Mapping\\Loader",
"short_class": "AttributesLoader",
"class": "Dunglas\\ApiBundle\\Mapping\\Loader\\AttributesLoader",
"type": "-\u003E",
"function": "getOrCreateAttribute",
"file": "\/var\/www\/html\/vendor\/dunglas\/api-bundle\/Mapping\/Loader\/AttributesLoader.php",
"line": 94,
"args": [
["object", "Dunglas\\ApiBundle\\Mapping\\ClassMetadata"],
["string", "name"],
["null", null],
["null", null]
]
}, {
"namespace": "Dunglas\\ApiBundle\\Mapping\\Loader",
"short_class": "AttributesLoader",
"class": "Dunglas\\ApiBundle\\Mapping\\Loader\\AttributesLoader",
"type": "-\u003E",
"function": "loadClassMetadata",
"file": "\/var\/www\/html\/vendor\/dunglas\/api-bundle\/Mapping\/Loader\/LoaderChain.php",
"line": 64,
"args": [
["object", "Dunglas\\ApiBundle\\Mapping\\ClassMetadata"],
["null", null],
["null", null],
["null", null]
]
}, {
"namespace": "Dunglas\\ApiBundle\\Mapping\\Loader",
"short_class": "LoaderChain",
"class": "Dunglas\\ApiBundle\\Mapping\\Loader\\LoaderChain",
"type": "-\u003E",
"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": "-\u003E",
"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": "-\u003E",
"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", {
"0000000059bacfbd00000000691a4e3f": ["string", "1"]
}]
}]
]
}, {
"namespace": "Dunglas\\ApiBundle\\JsonLd\\Serializer",
"short_class": "ItemNormalizer",
"class": "Dunglas\\ApiBundle\\JsonLd\\Serializer\\ItemNormalizer",
"type": "-\u003E",
"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", {
"0000000059bacfbd00000000691a4e3f": ["string", "1"]
}]
}]
]
}, {
"namespace": "Symfony\\Component\\Serializer",
"short_class": "Serializer",
"class": "Symfony\\Component\\Serializer\\Serializer",
"type": "-\u003E",
"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": "-\u003E",
"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": "-\u003E",
"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": "-\u003E",
"function": "getSuccessResponse",
"file": "\/var\/www\/html\/vendor\/dunglas\/api-bundle\/Controller\/ResourceController.php",
"line": 161,
"args": [
["object", "DunglasApiBundleApiResource_000000001be1d775000000007a4230e7e5139c916d21af4abfe5ffe5dd20d49e"],
["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": "-\u003E",
"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": "-\u003E",
"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": "-\u003E",
"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": "-\u003E",
"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": "-\u003E",
"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