/** * save function * @return object */ public function save() { return $this->invoice_srl ? $this->repo->update($this) : $this->repo->insert($this); }
/** * save function * @return object */ public function save() { return $this->newsletter_srl ? $this->repo->update($this) : $this->repo->insert($this); }