question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

There is no PropertyInfo extractor

See original GitHub issue

When 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:closed
  • Created 4 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
stipiccommented, Apr 3, 2019

@teohhanhui

It’s working now.

image

1reaction
teohhanhuicommented, Apr 2, 2019
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found