/**
  * Updates and saves the current object.
  *
  * @param PropelPDO $con An optional PropelPDO object
  */
 protected function doSave($con = null)
 {
     if (isset($this->values['ratings'])) {
         $this->values['ratings'] = implode(', ', $this->values['ratings']);
     }
     parent::doSave();
 }
 /**
  * Updates and saves the current object.
  *
  * @param PropelPDO $con An optional PropelPDO object
  */
 protected function doSave($con = null)
 {
     foreach ($this->premium_choices as $key => $choice) {
         if ($key == $this->values['premium_choice']) {
             $this->values['premium_size'] = $choice[2];
             $this->values['premium_choice'] = $choice[1];
             break;
         }
     }
     parent::doSave();
 }
 protected function doSave($con = null)
 {
     $this->values['ip_address'] = $_SERVER["REMOTE_ADDR"];
     parent::doSave();
 }