Many to Many question...

Hello, I´m trying to create a yii application following the blog tutorial and modifying the files as I need. I have a many to many relationship between Pictures and Topics. This Many to Many relation is achieved through an additional table picturesTopics in my database and I don´t know how to modify the crud generated files in order to be possible assign Topics to Pictures while creating these ones. Please, what should I do?

You will have to do it manually, either by using models or DAO. There are some extensions out there too:


I’ll try it. Thanks a lot

You could also try with this behavior: