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.
Download end extract the file in controllers, then configure the config main as follows:
'db'=>array( 'class'=>'ZDbConnection',
Total 1 comment
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!
Leave a comment
Please login to leave your comment.