It’s because you set the “checked” attribute to true, and it will override any nameOfCheckBox value. Instead set nameOfCheckBox value inside a model class (or somewhere outside), so after a massive assignment this value can change:
class MyModel extends CActiveRecord
{
public $nameOfCheckBox = 'yes'; // or true, I don't actually know which one will work there
// ...
}