I run a complex query using CDbCriteria and fetch results as a CActiveDataProvider instance, but there is something strange going on, count($dataProvider->getData()) and $dataProvider->getTotalItemCount(); returns completely different numbers?
I run a complex query using CDbCriteria and fetch results as a CActiveDataProvider instance, but there is something strange going on, count($dataProvider->getData()) and $dataProvider->getTotalItemCount(); returns completely different numbers?
Looks like this is a bug in CActiveDataProvider and still not fixed, there is a hack though: