Skip to content
This repository has been archived by the owner on May 16, 2018. It is now read-only.

Problem with Zend_Paginator and group by in query #750

Open
silasrm opened this issue Mar 3, 2018 · 2 comments
Open

Problem with Zend_Paginator and group by in query #750

silasrm opened this issue Mar 3, 2018 · 2 comments

Comments

@silasrm
Copy link

silasrm commented Mar 3, 2018

Hi guys,

Zend_Paginator has a serious error when using group by in query. He loses himself by counting the lines.
Simples solution: reset count after cloning query.

// Zend/Paginator/Adapter/DbSelect.php:207
$rowCount = clone $this->_select;
$rowCount->__toString(); // Workaround for ZF-3719 and related
$rowCount->reset(Zend_Db_Select::LIMIT_COUNT); // <--- this
@BorislavSabev
Copy link

@silasrm you realize that ZF1 is End-Of-Life since the 28th of September 2018, right?
Noone will ever act on this issue.

@froschdesign
Copy link
Member

@BorislavSabev
We leave this type of issue report open, such as help for others.

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

No branches or pull requests

3 participants