#5123: Incorrect find('count') results when using "GROUP BY" and
Controller::paginate()
------------------------------------------+---------------------------------
Reporter: bunyan | Owner:
Type: Enhancement | Status: reopened
Priority: Low | Milestone: 2.0.0.x
Component: MySQL | Version: Alpha
Severity: Normal | Resolution:
Keywords: paginate, count, group by | Php_version: PHP 5
Cake_version: 1.2.0.7296 RC2 |
------------------------------------------+---------------------------------
Comment (by bmilesp):
I agree with mark_story that the workarounds suggested do fill the
flexibility. But Pedro's point that expected/included flexibility should
be the holy mantra of framework development.
I had to chime in on this because I had quite a complex pagination query,
so it wasn't at all obvious which part of the query was causing the bug.
After nearly 3 hours of debugging the core code I finally found that the
GROUP BY was causing this bug. I then googled it and found this ticket
here, finally ending the frustration.
We can all easily write simple workarounds and overrides, sure, but
getting to that point can be a long, thorn-laden road if you're not
familiar with the core code.
--
Ticket URL: <https://trac.cakephp.org/ticket/5123#comment:17>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC.
Our primary goal is to provide a structured framework that enables PHP users at
all levels to rapidly develop robust web applications, without any loss to
flexibility.
--
You received this message because you are subscribed to the Google Groups
"tickets cakephp" group.
To post to this group, send email to [email protected].
For more options, visit this group at
http://groups.google.com/group/tickets-cakephp?hl=.