Skip to content

Conversation

@GaryPEGEOT
Copy link
Contributor

@GaryPEGEOT GaryPEGEOT commented Dec 1, 2025

Q A
Branch? 4.2
Tickets
License MIT

Not sure if it's new feature or bug fix, but provider not handling output looks like a bug to me

@soyuka
Copy link
Member

soyuka commented Dec 11, 2025

I'm not sure about this because outputs are quite hacky, what is your use case?

@GaryPEGEOT
Copy link
Contributor Author

I'm not sure about this because outputs are quite hacky, what is your use case?

Being able to specify a different class from the resource in GetCollection, as you can do with Doctrine, maybe there's a better way of doing this?

@soyuka
Copy link
Member

soyuka commented Dec 11, 2025

you should rather use GetCollection on the output DTO and use a provider that decorates the original one and change the class if you need, with doctrine stateOptions->entityClass is used to automate this but we don't have this with elasticsearch as usually you always create a provider in my opinion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants