This extension is a fix for a know bug in activrecord.
If you make a query with grouBy and Having, the count doesn't use having and so return a wrong result.
Using this extension you will get the correct result.
How to use it ΒΆ
Download end extract the file in controllers, then configure the config main as follows:
'db'=>array(
'class'=>'ZDbConnection',
fixed
As soon as I created the extension I noticed that in revision 3092 this bug has fixed.
Anyway can be useful to anyone is using Yii 1.1.5 or previous.
Thank to the developer for fixing it!
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.