When using an activeCheckBoxList how should the data be stored in the database if they select multiple checkboxes?
I see that it comes through as an array, but to show the checkboxes being checked in the update, how does the activeCheckBoxList need the values stored?
Just to help out the newbies to Yii like me, this is what I did to store multiple checkboxes in my db table. There may be a better way to handle this, but it works.
In the model I added the beforeSave() method with the following: