Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Altering Collection in EVENT_FETCH_ALL_POST #272

Open
Dwarfex opened this issue Aug 23, 2016 · 2 comments
Open

Altering Collection in EVENT_FETCH_ALL_POST #272

Dwarfex opened this issue Aug 23, 2016 · 2 comments

Comments

@Dwarfex
Copy link

Dwarfex commented Aug 23, 2016

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

@TomHAnderson
Copy link
Contributor

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.

Dwarfex referenced this issue Sep 5, 2017
…data submitted to the resource method. Implemented an Event Listener to handled embedded toMany collections submitted to the Resource.
@weierophinney
Copy link
Member

This repository has been closed and moved to laminas-api-tools/api-tools-doctrine; a new issue has been opened at laminas-api-tools/api-tools-doctrine#8.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants