Good night, tell experts in Yii.
There is a catalog of CDs (Drivers), each drive there are genres (genres) (disk may belong to multiple genre).
Connected them via many_to_many
public function relations()
'genres' => array(self::many_many relations, 'Genres', 'drives_in_genres(driver_id,genre_id)'),
asked October 8th 19 at 05:41