Relations and forms

Hi,

I have a many to many relation between two tables and I also have a "joining" table to join them together.

On one form I have a CheckBoxList that allows the user to select records from the table with which the current form has the relationship with however …

I have been writing manual code to make this work and I am wondering if Yii is suppose to be doing this for me?

i.e. altering the "joining" table depending on the checkboxes selected? Is this right or wrong?

If you need me to explain better please ask.

Another view on this would be to say …

Yii has a lot of documentation about finding records through relations?

But …

Does Yii have the same easy of use when it comes to saving records through relations?

James.

Or to add that …

Even deleting … can Yii do something like …

$user->book->delete();