kartik\builder\FormTrait::hasModel PHP Method

hasModel() protected method

Check if a valid model is set for the object instance.
protected hasModel ( ) : boolean
return boolean whether there is a valid model set.
    protected function hasModel()
    {
        return isset($this->model) && $this->model instanceof Model;
    }