MySQL and Yii relations