Open richard-parnaby-king opened 6 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.
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:
git rebase -i origin/{branch}
)
Resolves #41
json_encode($this->getAdapter())
would always return an empty object for\Zend\Paginator\Adapter\DbSelect
adapters (i.e.{}
). By performingprint_r
on the adapter we can get the current state which, in the case ofDbSelect
, 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.