zfcampus / zf-apigility-doctrine

Doctrine-enabled services for Apigility
BSD 3-Clause "New" or "Revised" License
107 stars 50 forks source link

Altering Collection in EVENT_FETCH_ALL_POST #272

Open Dwarfex opened 8 years ago

Dwarfex commented 8 years ago

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 commented 8 years ago

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.

weierophinney commented 4 years ago

This repository has been closed and moved to laminas-api-tools/api-tools-doctrine; a new issue has been opened at https://github.com/laminas-api-tools/api-tools-doctrine/issues/8.