original_string: protected function getRelationModel()
      {
          list($model, $attribute) = $this->resolveModelAttribute($this->valueFrom);
  
          if (!$model) {
              throw new ApplicationException(Lang::get('backend::lang.model.missing_relation', [
                  'class' => get_class($this->model),
                  'relation' => $this->valueFrom
              ]));
          }
  
          if (!$model->hasRelation($attribute)) {
              throw new ApplicationException(Lang::get('backend::lang.model.missing_relation', [
                  'class' => get_class($model),
                  'relation' => $attribute
              ]));
          }
  
          return $model->makeRelation($attribute);
      }
code: protected function getRelationModel()
      {
          list($model, $attribute) = $this->resolveModelAttribute($this->valueFrom);
  
          if (!$model) {
              throw new ApplicationException(Lang::get('backend::lang.model.missing_relation', [
                  'class' => get_class($this->model),
                  'relation' => $this->valueFrom
              ]));
          }
  
          if (!$model->hasRelation($attribute)) {
              throw new ApplicationException(Lang::get('backend::lang.model.missing_relation', [
                  'class' => get_class($model),
                  'relation' => $attribute
              ]));
          }
  
          return $model->makeRelation($attribute);
      }
code_tokens: protected function getRelationModel ( ) { list ( $ model , $ attribute ) = $ this -> resolveModelAttribute ( $ this -> valueFrom ) ; if ( ! $ model ) { throw new ApplicationException ( Lang :: get ( 'backend::lang.model.missing_relation' , [ 'class' => get_class ( $ this -> model ) , 'relation' => $ this -> valueFrom ] ) ) ; } if ( ! $ model -> hasRelation ( $ attribute ) ) { throw new ApplicationException ( Lang :: get ( 'backend::lang.model.missing_relation' , [ 'class' => get_class ( $ model ) , 'relation' => $ attribute ] ) ) ; } return $ model -> makeRelation ( $ attribute ) ; }
docstring: Returns the model of a relation type,
  supports nesting via HTML array.
  @return Relation
docstring_tokens: Returns the model of a relation type supports nesting via HTML array .