CakePHP paginate with group bug fix

Many people know this bug, when you try to paginate model with group by the count return only one. I have fixed this bug making a fork of cake/libs/model/model.php. We need to edit the file near at line 2050. I change de IF’s adding a new condition and added a new one. So it’s look [...]