Are you sure that in $POST you have the correct value?
If yes, are you sure that there is some rule on the attribute you are going to change?
In my opinion, the listBox is an unconfortable instrumet, I like much more to write custom code and use a third table for the relationship instead of save on db comma separated values.
A location (it’s a restaurant) can “serve” multiple locations. So, there’s a list of locations:
LOCATION
location_id
name
And a list of neighborhoods:
NEIGHBORHOOD
neighborhood_id
name
And a connecting table:
LOCATION_NEIGHBORHOOD
location_id (foreign key to LOCATION)
neighborhood_id (foreign key to NEIGHBORHOOD)
Then, the user is presented with a list (multiple select) of the neighborhoods that their location serves, and they can change them in the multiple select box, and this should be saved to the database. I guess I just need to know which event to handle, and it looks like I should delete all the records for that location in LOCATION_NEIGHBORHOOD, then insert the "new" ones.
PS I’m an experienced ASP/Javascript/MSSQL programmer, but am very new to Yii, and reasonably new to PHP/MySql