activeCheckBoxList with MANY_to_MANY

hello

I know this question was already asked but the threads are all a bit old.

can’t yii yet automatic insert object for MANY_TO_MANY Releations into the database when I give on an activeCheckBoxList a list of objects.

Example:




<?

echo CHtml::activeCheckBoxList($model, "example", CHtml::listData(Example::model()->findAll(), 'id', 'name'));

?>



the relations should be correct.

thank you

phil

I am having the same problem, is there a way to do this automatically with Yii yet or do I need to code it manually?

There is a way since Yii 1.1. I am writing some Active Record Enhancements at this time. Please take a quick look on

my MANY_MANY suggestion regarding easily and quickly MANY-MANY inserts. It could easily be comined with a ActiveCheckBox.

I will release this enhancement together with some more as an Behavior in early february, please help test this collection of AR enhancement code snippets :)