/**
  * Saves a bind in the database
  *
  * @return void
  */
 public function saveObject()
 {
     if (is_array($this->default_values)) {
         $t = array();
         foreach ($this->default_values as $value) {
             $t[$value->getId()] = $value;
         }
         $this->default_values = $t;
         if (count($this->default_values)) {
             $dao = new Tracker_FormElement_Field_List_Bind_DefaultvalueDao();
             $dao->save($this->field->getId(), array_keys($this->default_values));
         }
     }
     if (is_array($this->decorators) && !empty($this->decorators)) {
         $values = $this->getBindValues();
         foreach ($this->decorators as $decorator) {
             $hexacolor = Tracker_FormElement_Field_List_BindDecorator::toHexa($decorator->r, $decorator->g, $decorator->b);
             Tracker_FormElement_Field_List_BindDecorator::save($this->field->getId(), $values[$decorator->value_id]->getId(), $hexacolor);
         }
     }
 }