Skip to content

Instantly share code, notes, and snippets.

@Simperfit
Created April 23, 2018 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Simperfit/73d7d55191248910f7110be8891a756a to your computer and use it in GitHub Desktop.
Save Simperfit/73d7d55191248910f7110be8891a756a to your computer and use it in GitHub Desktop.
{
"@context": "/api/contexts/Error",
"@type": "hydra:Error",
"hydra:title": "An error occurred",
"hydra:description": "Type error: Argument 2 passed to ApiPlatform\\Core\\Metadata\\Property\\Factory\\CachedPropertyMetadataFactory::create() must be of the type string, integer given, called in /Users/kate/htdocs/api_tryoup/vendor/api-platform/core/src/Serializer/AbstractItemNormalizer.php on line 150",
"trace": [
{
"namespace": "",
"short_class": "",
"class": "",
"type": "",
"function": "",
"file": "/Users/kate/htdocs/api_tryoup/vendor/api-platform/core/src/Metadata/Property/Factory/CachedPropertyMetadataFactory.php",
"line": 41,
"args": []
},
{
"namespace": "ApiPlatform\\Core\\Metadata\\Property\\Factory",
"short_class": "CachedPropertyMetadataFactory",
"class": "ApiPlatform\\Core\\Metadata\\Property\\Factory\\CachedPropertyMetadataFactory",
"type": "->",
"function": "create",
"file": "/Users/kate/htdocs/api_tryoup/vendor/api-platform/core/src/Serializer/AbstractItemNormalizer.php",
"line": 150,
"args": [
[
"string",
"AppBundle\\Entity\\Campaign"
],
[
"integer",
0
],
[
"array",
{
"serializer_groups": [
"array",
[
[
"string",
"create_manual"
]
]
]
}
]
]
},
{
"namespace": "ApiPlatform\\Core\\Serializer",
"short_class": "AbstractItemNormalizer",
"class": "ApiPlatform\\Core\\Serializer\\AbstractItemNormalizer",
"type": "->",
"function": "setAttributeValue",
"file": "/Users/kate/htdocs/api_tryoup/vendor/symfony/symfony/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php",
"line": 194,
"args": [
[
"object",
"AppBundle\\Entity\\Campaign"
],
[
"integer",
0
],
[
"string",
""
],
[
"string",
"json"
],
[
"array",
{
"api_allow_update": [
"boolean",
true
],
"resource_class": [
"string",
"AppBundle\\Entity\\Campaign"
],
"request_uri": [
"string",
"/api/jobs/54"
],
"groups": [
"array",
[
[
"string",
"create_manual"
]
]
],
"api_denormalize": [
"boolean",
true
],
"cache_key": [
"string",
"a974def805ecf46208bb60f00d19d4dc"
]
}
]
]
},
{
"namespace": "Symfony\\Component\\Serializer\\Normalizer",
"short_class": "AbstractObjectNormalizer",
"class": "Symfony\\Component\\Serializer\\Normalizer\\AbstractObjectNormalizer",
"type": "->",
"function": "denormalize",
"file": "/Users/kate/htdocs/api_tryoup/vendor/api-platform/core/src/Serializer/AbstractItemNormalizer.php",
"line": 109,
"args": [
[
"string",
""
],
[
"string",
"AppBundle\\Entity\\Campaign"
],
[
"string",
"json"
],
[
"array",
{
"api_allow_update": [
"boolean",
true
],
"resource_class": [
"string",
"AppBundle\\Entity\\Campaign"
],
"request_uri": [
"string",
"/api/jobs/54"
],
"groups": [
"array",
[
[
"string",
"create_manual"
]
]
],
"api_denormalize": [
"boolean",
true
],
"cache_key": [
"string",
"a974def805ecf46208bb60f00d19d4dc"
]
}
]
]
},
{
"namespace": "ApiPlatform\\Core\\Serializer",
"short_class": "AbstractItemNormalizer",
"class": "ApiPlatform\\Core\\Serializer\\AbstractItemNormalizer",
"type": "->",
"function": "denormalize",
"file": "/Users/kate/htdocs/api_tryoup/vendor/api-platform/core/src/Serializer/ItemNormalizer.php",
"line": 41,
"args": [
[
"string",
""
],
[
"string",
"AppBundle\\Entity\\Campaign"
],
[
"string",
"json"
],
[
"array",
{
"api_allow_update": [
"boolean",
true
],
"resource_class": [
"string",
"AppBundle\\Entity\\Campaign"
],
"request_uri": [
"string",
"/api/jobs/54"
],
"groups": [
"array",
[
[
"string",
"create_manual"
]
]
],
"api_denormalize": [
"boolean",
true
],
"cache_key": [
"string",
"a974def805ecf46208bb60f00d19d4dc"
]
}
]
]
},
{
"namespace": "ApiPlatform\\Core\\Serializer",
"short_class": "ItemNormalizer",
"class": "ApiPlatform\\Core\\Serializer\\ItemNormalizer",
"type": "->",
"function": "denormalize",
"file": "/Users/kate/htdocs/api_tryoup/vendor/symfony/symfony/src/Symfony/Component/Serializer/Serializer.php",
"line": 264,
"args": [
[
"string",
""
],
[
"string",
"AppBundle\\Entity\\Campaign"
],
[
"string",
"json"
],
[
"array",
{
"api_allow_update": [
"boolean",
true
],
"resource_class": [
"string",
"AppBundle\\Entity\\Campaign"
],
"request_uri": [
"string",
"/api/jobs/54"
],
"groups": [
"array",
[
[
"string",
"create_manual"
]
]
],
"api_denormalize": [
"boolean",
true
],
"cache_key": [
"string",
"a974def805ecf46208bb60f00d19d4dc"
]
}
]
]
},
{
"namespace": "Symfony\\Component\\Serializer",
"short_class": "Serializer",
"class": "Symfony\\Component\\Serializer\\Serializer",
"type": "->",
"function": "denormalizeObject",
"file": "/Users/kate/htdocs/api_tryoup/vendor/symfony/symfony/src/Symfony/Component/Serializer/Serializer.php",
"line": 174,
"args": [
[
"string",
""
],
[
"string",
"AppBundle\\Entity\\Campaign"
],
[
"string",
"json"
],
[
"array",
{
"api_allow_update": [
"boolean",
true
],
"resource_class": [
"string",
"AppBundle\\Entity\\Campaign"
],
"request_uri": [
"string",
"/api/jobs/54"
],
"groups": [
"array",
[
[
"string",
"create_manual"
]
]
],
"api_denormalize": [
"boolean",
true
],
"cache_key": [
"string",
"a974def805ecf46208bb60f00d19d4dc"
]
}
]
]
},
{
"namespace": "Symfony\\Component\\Serializer",
"short_class": "Serializer",
"class": "Symfony\\Component\\Serializer\\Serializer",
"type": "->",
"function": "denormalize",
"file": "/Users/kate/htdocs/api_tryoup/vendor/api-platform/core/src/Serializer/AbstractItemNormalizer.php",
"line": 288,
"args": [
[
"string",
""
],
[
"string",
"AppBundle\\Entity\\Campaign"
],
[
"string",
"json"
],
[
"array",
{
"api_allow_update": [
"boolean",
true
],
"resource_class": [
"string",
"AppBundle\\Entity\\Campaign"
],
"request_uri": [
"string",
"/api/jobs/54"
],
"groups": [
"array",
[
[
"string",
"create_manual"
]
]
],
"api_denormalize": [
"boolean",
true
],
"cache_key": [
"string",
"a974def805ecf46208bb60f00d19d4dc"
]
}
]
]
},
{
"namespace": "ApiPlatform\\Core\\Serializer",
"short_class": "AbstractItemNormalizer",
"class": "ApiPlatform\\Core\\Serializer\\AbstractItemNormalizer",
"type": "->",
"function": "denormalizeRelation",
"file": "/Users/kate/htdocs/api_tryoup/vendor/api-platform/core/src/Serializer/AbstractItemNormalizer.php",
"line": 184,
"args": [
[
"string",
"campaign"
],
[
"object",
"ApiPlatform\\Core\\Metadata\\Property\\PropertyMetadata"
],
[
"string",
"AppBundle\\Entity\\Campaign"
],
[
"string",
""
],
[
"string",
"json"
],
[
"array",
{
"item_operation_name": [
"string",
"put"
],
"api_allow_update": [
"boolean",
true
],
"resource_class": [
"string",
"AppBundle\\Entity\\Job"
],
"request_uri": [
"string",
"/api/jobs/54"
],
"groups": [
"array",
[
[
"string",
"create_manual"
]
]
],
"api_denormalize": [
"boolean",
true
],
"cache_key": [
"string",
"a974def805ecf46208bb60f00d19d4dc"
]
}
]
]
},
{
"namespace": "ApiPlatform\\Core\\Serializer",
"short_class": "AbstractItemNormalizer",
"class": "ApiPlatform\\Core\\Serializer\\AbstractItemNormalizer",
"type": "->",
"function": "setAttributeValue",
"file": "/Users/kate/htdocs/api_tryoup/vendor/symfony/symfony/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php",
"line": 194,
"args": [
[
"object",
"AppBundle\\Entity\\Job"
],
[
"string",
"campaign"
],
[
"string",
""
],
[
"string",
"json"
],
[
"array",
{
"item_operation_name": [
"string",
"put"
],
"api_allow_update": [
"boolean",
true
],
"resource_class": [
"string",
"AppBundle\\Entity\\Job"
],
"request_uri": [
"string",
"/api/jobs/54"
],
"groups": [
"array",
[
[
"string",
"create_manual"
]
]
],
"api_denormalize": [
"boolean",
true
],
"cache_key": [
"string",
"a974def805ecf46208bb60f00d19d4dc"
]
}
]
]
},
{
"namespace": "Symfony\\Component\\Serializer\\Normalizer",
"short_class": "AbstractObjectNormalizer",
"class": "Symfony\\Component\\Serializer\\Normalizer\\AbstractObjectNormalizer",
"type": "->",
"function": "denormalize",
"file": "/Users/kate/htdocs/api_tryoup/vendor/api-platform/core/src/Serializer/AbstractItemNormalizer.php",
"line": 109,
"args": [
[
"array",
{
"externalTelephone": [
"string",
"/api/external_telephones/42"
],
"campaign": [
"string",
""
],
"category": [
"string",
"/api/categories/7"
],
"description": [
"string",
"testrtyuiuytrertyu"
],
"status": [
"string",
"cancelled"
],
"technician": [
"string",
"/api/users/4"
]
}
],
[
"string",
"AppBundle\\Entity\\Job"
],
[
"string",
"json"
],
[
"array",
{
"item_operation_name": [
"string",
"put"
],
"api_allow_update": [
"boolean",
true
],
"resource_class": [
"string",
"AppBundle\\Entity\\Job"
],
"request_uri": [
"string",
"/api/jobs/54"
],
"groups": [
"array",
[
[
"string",
"create_manual"
]
]
],
"api_denormalize": [
"boolean",
true
],
"cache_key": [
"string",
"a974def805ecf46208bb60f00d19d4dc"
]
}
]
]
},
{
"namespace": "ApiPlatform\\Core\\Serializer",
"short_class": "AbstractItemNormalizer",
"class": "ApiPlatform\\Core\\Serializer\\AbstractItemNormalizer",
"type": "->",
"function": "denormalize",
"file": "/Users/kate/htdocs/api_tryoup/vendor/api-platform/core/src/Serializer/ItemNormalizer.php",
"line": 41,
"args": [
[
"array",
{
"externalTelephone": [
"string",
"/api/external_telephones/42"
],
"campaign": [
"string",
""
],
"category": [
"string",
"/api/categories/7"
],
"description": [
"string",
"testrtyuiuytrertyu"
],
"status": [
"string",
"cancelled"
],
"technician": [
"string",
"/api/users/4"
]
}
],
[
"string",
"AppBundle\\Entity\\Job"
],
[
"string",
"json"
],
[
"array",
{
"item_operation_name": [
"string",
"put"
],
"api_allow_update": [
"boolean",
true
],
"resource_class": [
"string",
"AppBundle\\Entity\\Job"
],
"request_uri": [
"string",
"/api/jobs/54"
],
"groups": [
"array",
[
[
"string",
"create_manual"
]
]
],
"object_to_populate": [
"object",
"AppBundle\\Entity\\Job"
],
"api_denormalize": [
"boolean",
true
]
}
]
]
},
{
"namespace": "ApiPlatform\\Core\\Serializer",
"short_class": "ItemNormalizer",
"class": "ApiPlatform\\Core\\Serializer\\ItemNormalizer",
"type": "->",
"function": "denormalize",
"file": "/Users/kate/htdocs/api_tryoup/vendor/symfony/symfony/src/Symfony/Component/Serializer/Serializer.php",
"line": 264,
"args": [
[
"array",
{
"externalTelephone": [
"string",
"/api/external_telephones/42"
],
"campaign": [
"string",
""
],
"category": [
"string",
"/api/categories/7"
],
"description": [
"string",
"testrtyuiuytrertyu"
],
"status": [
"string",
"cancelled"
],
"technician": [
"string",
"/api/users/4"
]
}
],
[
"string",
"AppBundle\\Entity\\Job"
],
[
"string",
"json"
],
[
"array",
{
"item_operation_name": [
"string",
"put"
],
"api_allow_update": [
"boolean",
true
],
"resource_class": [
"string",
"AppBundle\\Entity\\Job"
],
"request_uri": [
"string",
"/api/jobs/54"
],
"groups": [
"array",
[
[
"string",
"create_manual"
]
]
],
"object_to_populate": [
"object",
"AppBundle\\Entity\\Job"
]
}
]
]
},
{
"namespace": "Symfony\\Component\\Serializer",
"short_class": "Serializer",
"class": "Symfony\\Component\\Serializer\\Serializer",
"type": "->",
"function": "denormalizeObject",
"file": "/Users/kate/htdocs/api_tryoup/vendor/symfony/symfony/src/Symfony/Component/Serializer/Serializer.php",
"line": 174,
"args": [
[
"array",
{
"externalTelephone": [
"string",
"/api/external_telephones/42"
],
"campaign": [
"string",
""
],
"category": [
"string",
"/api/categories/7"
],
"description": [
"string",
"testrtyuiuytrertyu"
],
"status": [
"string",
"cancelled"
],
"technician": [
"string",
"/api/users/4"
]
}
],
[
"string",
"AppBundle\\Entity\\Job"
],
[
"string",
"json"
],
[
"array",
{
"item_operation_name": [
"string",
"put"
],
"api_allow_update": [
"boolean",
true
],
"resource_class": [
"string",
"AppBundle\\Entity\\Job"
],
"request_uri": [
"string",
"/api/jobs/54"
],
"groups": [
"array",
[
[
"string",
"create_manual"
]
]
],
"object_to_populate": [
"object",
"AppBundle\\Entity\\Job"
]
}
]
]
},
{
"namespace": "Symfony\\Component\\Serializer",
"short_class": "Serializer",
"class": "Symfony\\Component\\Serializer\\Serializer",
"type": "->",
"function": "denormalize",
"file": "/Users/kate/htdocs/api_tryoup/vendor/symfony/symfony/src/Symfony/Component/Serializer/Serializer.php",
"line": 132,
"args": [
[
"array",
{
"externalTelephone": [
"string",
"/api/external_telephones/42"
],
"campaign": [
"string",
""
],
"category": [
"string",
"/api/categories/7"
],
"description": [
"string",
"testrtyuiuytrertyu"
],
"status": [
"string",
"cancelled"
],
"technician": [
"string",
"/api/users/4"
]
}
],
[
"string",
"AppBundle\\Entity\\Job"
],
[
"string",
"json"
],
[
"array",
{
"item_operation_name": [
"string",
"put"
],
"api_allow_update": [
"boolean",
true
],
"resource_class": [
"string",
"AppBundle\\Entity\\Job"
],
"request_uri": [
"string",
"/api/jobs/54"
],
"groups": [
"array",
[
[
"string",
"create_manual"
]
]
],
"object_to_populate": [
"object",
"AppBundle\\Entity\\Job"
]
}
]
]
},
{
"namespace": "Symfony\\Component\\Serializer",
"short_class": "Serializer",
"class": "Symfony\\Component\\Serializer\\Serializer",
"type": "->",
"function": "deserialize",
"file": "/Users/kate/htdocs/api_tryoup/vendor/api-platform/core/src/EventListener/DeserializeListener.php",
"line": 69,
"args": [
[
"array",
{
"externalTelephone": [
"string",
"/api/external_telephones/42"
],
"campaign": [
"string",
""
],
"category": [
"string",
"/api/categories/7"
],
"description": [
"string",
"testrtyuiuytrertyu"
],
"status": [
"string",
"cancelled"
],
"technician": [
"string",
"/api/users/4"
]
}
],
[
"string",
"AppBundle\\Entity\\Job"
],
[
"string",
"json"
],
[
"array",
{
"item_operation_name": [
"string",
"put"
],
"api_allow_update": [
"boolean",
true
],
"resource_class": [
"string",
"AppBundle\\Entity\\Job"
],
"request_uri": [
"string",
"/api/jobs/54"
],
"groups": [
"array",
[
[
"string",
"create_manual"
]
]
],
"object_to_populate": [
"object",
"AppBundle\\Entity\\Job"
]
}
]
]
},
{
"namespace": "ApiPlatform\\Core\\EventListener",
"short_class": "DeserializeListener",
"class": "ApiPlatform\\Core\\EventListener\\DeserializeListener",
"type": "->",
"function": "onKernelRequest",
"file": null,
"line": null,
"args": [
[
"object",
"Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent"
],
[
"string",
"kernel.request"
],
[
"object",
"Symfony\\Component\\HttpKernel\\Debug\\TraceableEventDispatcher"
]
]
},
{
"namespace": "",
"short_class": "",
"class": "",
"type": "",
"function": "call_user_func",
"file": "/Users/kate/htdocs/api_tryoup/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php",
"line": 106,
"args": [
[
"array",
[
[
"object",
"ApiPlatform\\Core\\EventListener\\DeserializeListener"
],
[
"string",
"onKernelRequest"
]
]
],
[
"object",
"Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent"
],
[
"string",
"kernel.request"
],
[
"object",
"Symfony\\Component\\HttpKernel\\Debug\\TraceableEventDispatcher"
]
]
},
{
"namespace": "Symfony\\Component\\EventDispatcher\\Debug",
"short_class": "WrappedListener",
"class": "Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener",
"type": "->",
"function": "__invoke",
"file": null,
"line": null,
"args": [
[
"object",
"Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent"
],
[
"string",
"kernel.request"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\ContainerAwareEventDispatcher"
]
]
},
{
"namespace": "",
"short_class": "",
"class": "",
"type": "",
"function": "call_user_func",
"file": "/Users/kate/htdocs/api_tryoup/var/cache/dev/classes.php",
"line": 3272,
"args": [
[
"object",
"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"
],
[
"object",
"Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent"
],
[
"string",
"kernel.request"
],
[
"object",
"Symfony\\Component\\EventDispatcher\\ContainerAwareEventDispatcher"
]
]
},
{
"namespace": "Symfony\\Component\\EventDispatcher",
"short_class": "EventDispatcher",
"class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
"type": "->",
"function": "doDispatch",
"file": "/Users/kate/htdocs/api_tryoup/var/cache/dev/classes.php",
"line": 3187,
"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"
],
[
"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"
],
[
"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.request"
],
[
"object",
"Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent"
]
]
},
{
"namespace": "Symfony\\Component\\EventDispatcher",
"short_class": "EventDispatcher",
"class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
"type": "->",
"function": "dispatch",
"file": "/Users/kate/htdocs/api_tryoup/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php",
"line": 136,
"args": [
[
"string",
"kernel.request"
],
[
"object",
"Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent"
]
]
},
{
"namespace": "Symfony\\Component\\EventDispatcher\\Debug",
"short_class": "TraceableEventDispatcher",
"class": "Symfony\\Component\\EventDispatcher\\Debug\\TraceableEventDispatcher",
"type": "->",
"function": "dispatch",
"file": "/Users/kate/htdocs/api_tryoup/var/cache/dev/classes.php",
"line": 4201,
"args": [
[
"string",
"kernel.request"
],
[
"object",
"Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent"
]
]
},
{
"namespace": "Symfony\\Component\\HttpKernel",
"short_class": "HttpKernel",
"class": "Symfony\\Component\\HttpKernel\\HttpKernel",
"type": "->",
"function": "handleRaw",
"file": "/Users/kate/htdocs/api_tryoup/var/cache/dev/classes.php",
"line": 4171,
"args": [
[
"object",
"Symfony\\Component\\HttpFoundation\\Request"
],
[
"integer",
1
]
]
},
{
"namespace": "Symfony\\Component\\HttpKernel",
"short_class": "HttpKernel",
"class": "Symfony\\Component\\HttpKernel\\HttpKernel",
"type": "->",
"function": "handle",
"file": "/Users/kate/htdocs/api_tryoup/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php",
"line": 168,
"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": "/Users/kate/htdocs/api_tryoup/web/app_dev.php",
"line": 33,
"args": [
[
"object",
"Symfony\\Component\\HttpFoundation\\Request"
]
]
},
{
"namespace": "",
"short_class": "",
"class": "",
"type": "",
"function": "require",
"file": "/Users/kate/htdocs/api_tryoup/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/router_dev.php",
"line": 40,
"args": [
[
"string",
"/Users/kate/htdocs/api_tryoup/web/app_dev.php"
]
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment