/** * @param int $id * @param AccountTwrValue $model * @return bool */ public function update($id, AccountTwrValue $model) { return $this->fpdo->update($this->table, array('net_value' => $model->getNetValue(), 'gross_value' => $model->getGrossValue()), $id)->execute(); }