final public function setModel(IModel $model) {
        $this->model = $model;
        $this->setData($model->toArray(false, true));
        return $this;
    }
final public function setModel(IModel $model) {
        $this->model = $model;
        $this->setData($model->toArray(false, true));
        return $this;
    }
final public function setModel ( IModel $ model ) { $ this -> model = $ model ; $ this -> setData ( $ model -> toArray ( false , true ) ) ; return $ this ; }
Maps the form to a model
@param IModel $model
@return Form
Maps the form to a model