yiisoft/yii — Issue #359: self::STAT keys order
Author: segoddnja
Created: 2012-02-17 17:39:47+00:00
State: open

For example we hawe 2 relations
'teamMembers' => array(self::MANY_MANY, 'User', 'user_team(team_id, user_id)'),
'teamMembersCount' => array(self::STAT, 'User', 'user_team(user_id, team_id)').
If keys in self::STAT relation seted like this, generated request is invalid. For valid request keys should be ordered like this 'user_team(team_id,user_id)'. I can't found anything about this in documentation. But I think that keys in STAT relation shoul be ordered like keys in MANY_MANY relation.