Ejemplo n.º 1
0
 public function save()
 {
     if ($this->_isNew) {
         $model = new Trip();
         $model->setAttributes($this->getAttributes());
         $model->save();
     } else {
         $this->_initial->setAttributes($this->getAttributes());
         $this->_initial->save();
     }
 }