/** * Set the form input * @param array $input */ public function setInput(array $input, $id = null) { if ($id) { $this->model->find($id)->setInput($input); } else { $this->model->setInput($input); } return $this; }
/** * Set the form input * @param array $input */ public function setInput(array $input) { $this->model->setInput($input); return $this; }