There is no PropertyInfo extractor
See original GitHub issueWhen i made PUT/POST/… request on my entity
page_blocks
i get this error:
“There is no PropertyInfo extractor supporting the class "stdClass".”
"file": "/vendor/api-platform/core/src/Bridge/Symfony/PropertyInfo/Metadata/Property/PropertyInfoPropertyNameCollectionFactory.php",
"line": 46,
Postman request:
PUT: /api/page_blocks raw body:
{
"page":"/api/pages/2020",
"type":"image",
"draggable":true,
"name":"featured_image",
"label":"Header Featured Image",
"description":"",
"status":0,
"content":"{\"fields\":{\"title\":{\"value\":\"\"},\"images\":[{\"id\":0,\"categoryId\":0,\"uri\":\"/api/pictures\",\"resource\":\"{}\",\"description\":\"\",\"alt\":\"\",\"type\":\"picture\",\"text\":\"\",\"src\":\"\"}],\"alternativeAudio\":{},\"caption\":\"\"},\"showCaption\":false,\"alternativeContent\":false,\"alternativeAudioContent\":false,\"blockLayout\":\"default\"}",
"renderOrder":6,
"groupName":"header",
"className":"ImageBlockComponent",
"parentId":0
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
There is no PropertyInfo extractor supporting the class #3445
I have Post request. foo - it`s a first field in my php-object named MyObject; bar - it`s a second field in my...
Read more >The PropertyInfo Component (Symfony Docs)
The ReflectionExtractor looks for getter/isser/setter/hasser method in addition to whether or not a property is public to determine if it's accessible. This ...
Read more >Symfony\Component\PropertyInfo\Extractor
Extracts data using the reflection API. SerializerExtractor. Lists available properties using Symfony Serializer Component metadata. Generated by Sami, the API ...
Read more >Bootstraping the core library - API Platform
This one file runs API Platform (without graphql, doctrine and mongodb). It requires the ... use Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor; ...
Read more >PropertyInfo - 《Symfony v5.3 Documentation》 - 书栈网
The Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor has priority for list information so that all properties in a class (not ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@teohhanhui
It’s working now.
@stipic Could you help us try https://github.com/api-platform/core/pull/2679 😃