I got you in the first place and unfortunately it is not working.
I meant compared to CBelongsToRelation and CManyToManyRelation, CStatsRelation has no property together. That might indicate that together() is not working with CstatsRelation.
Maybe you are right and I have to make another column, but that would be quite annoying in my case. I have one table which belongs to three other tables and each of them has the StatRelation to it. So for creating one entry I would have to update 4 tables…
I just realized that there are even more drawbacks. You also cannot sort by avg and sum columns.
So if you have a movie collection and want to sort by average rating - no way.
Or another application of mine is a management tool for URLs similar to tinyurl. Every URL is organized in different categories and every visit is tracked. So if i want to see which category has the most visits, i cannot do this right now.