protected function setupNamedModel()
    {
        if (!$this->getModel() || !$this->getName()) {
            return;
        }

        $model = $this->formHelper->convertModelToArray($this->getModel());

        if (!array_get($model, $this->getName())) {
            $this->model = [
                $this->getName() => $model
            ];
        }
    }
protected function setupNamedModel()
    {
        if (!$this->getModel() || !$this->getName()) {
            return;
        }

        $model = $this->formHelper->convertModelToArray($this->getModel());

        if (!array_get($model, $this->getName())) {
            $this->model = [
                $this->getName() => $model
            ];
        }
    }
protected function setupNamedModel ( ) { if ( ! $ this -> getModel ( ) || ! $ this -> getName ( ) ) { return ; } $ model = $ this -> formHelper -> convertModelToArray ( $ this -> getModel ( ) ) ; if ( ! array_get ( $ model , $ this -> getName ( ) ) ) { $ this -> model = [ $ this -> getName ( ) => $ model ] ; } }
Set namespace to model if form is named so the data is bound properly
Set namespace to model if form is named so the data is bound properly