MANY-MANY relation management for Yii framework