Does grouping and filtering for yii models