paknahad / jsonapi-bundle

the fastest way to generate API based on jsonapi.org using woohoolabs/yin
MIT License
70 stars 26 forks source link

Target object does not arrive in queries #82

Open jorago opened 3 years ago

jorago commented 3 years ago

Can you please tell me what the reason may be that I am not obtaining the target object in my queries

nelson6e65 commented 3 years ago

It is not documented, but you can use $this->object in the class inheriting Paknahad\JsonApiBundle\Document\AbstractCollectionDocument class.

It is not type hinted, but is an instance of Paknahad\JsonApiBundle\Helper\ResourceCollection.