Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Altering Collection in EVENT_FETCH_ALL_POST #8

Open
weierophinney opened this issue Dec 31, 2019 · 1 comment
Open

Altering Collection in EVENT_FETCH_ALL_POST #8

weierophinney opened this issue Dec 31, 2019 · 1 comment

Comments

@weierophinney
Copy link
Contributor

Hi,
i left a comment in the Code Link

Shouldn't it be possible to alter the collection in the EVENT_FETCH_ALL_POST Event ?
Only the EntityClass and the $data Variables are included in this Event. Where $data is just the parameter for the createQuery - Function.
Is there a way to get the current collection from this - or was it a mistake to remove $collection from this event?

Greetings,
Dwarfex


Originally posted by @Dwarfex at zfcampus/zf-apigility-doctrine#272

@weierophinney
Copy link
Contributor Author

I think all POST events should have the entity/collection and all PRE events should have the query builder.

These changes would be new development.


Originally posted by @TomHAnderson at zfcampus/zf-apigility-doctrine#272 (comment)

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

No branches or pull requests

1 participant