Transformers not working with pagination?
- Dominant language
- PHP
- Stars
- 9.4k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
Hello
I was using an older version of dingo (months ago) and this would be run through the transformer and properly return only the values I want returned.
`return $this->response->paginator($companies, new CompanyTransformer);`
But now, when I run this in my new project, it seems to completely ignore what I have in my transform function and returns all the values from the database.
This, tho, DOES return the appropriate fields that I selected
`$this->response->item($company, new CompanyTransformer)`
I've spent several hours trying to narrow down what it is with no luck, documentation says it should work. I also tried connecting to slack but won't let me join without an invite :(
Edit:
Seems I reverted back to the version I was using months ago and still all the values from the database are being returned. Perhaps it's another issue if anyone can lend a hand!...
Contributor guide
Assessment
This issue has not been assessed yet.