zendframework / zend-paginator

Paginate collections of data from arbitrary sources.
BSD 3-Clause "New" or "Revised" License
36 stars 30 forks source link

Prevent colliding internal cache ids based on adapter #42

Open richard-parnaby-king opened 6 years ago

richard-parnaby-king commented 6 years ago

Resolves #41 json_encode($this->getAdapter()) would always return an empty object for \Zend\Paginator\Adapter\DbSelect adapters (i.e. {}). By performing print_r on the adapter we can get the current state which, in the case of DbSelect, includes an sql object containing table name, join details, where clause, etc. This change will prevent collisions between adapters that do not have any public properties and/or values.

weierophinney commented 4 years ago

This repository has been closed and moved to laminas/laminas-paginator; a new issue has been opened at https://github.com/laminas/laminas-paginator/issues/2.

weierophinney commented 4 years ago

This repository has been moved to laminas/laminas-paginator. If you feel that this patch is still relevant, please re-open against that repository, and reference this issue. To re-open, we suggest the following workflow: