original_string: protected function setFieldValue($id)
      {
          $relations = $this->getRelations();
  
          $this->model = $this->model->with($relations)->findOrFail($id);
  
  //        static::doNotSnakeAttributes($this->model);
  
          $data = $this->model->toArray();
  
          $this->builder->fields()->each(function (Field $field) use ($data) {
              $field->fill($data);
          });
      }
code: protected function setFieldValue($id)
      {
          $relations = $this->getRelations();
  
          $this->model = $this->model->with($relations)->findOrFail($id);
  
  //        static::doNotSnakeAttributes($this->model);
  
          $data = $this->model->toArray();
  
          $this->builder->fields()->each(function (Field $field) use ($data) {
              $field->fill($data);
          });
      }
code_tokens: protected function setFieldValue ( $ id ) { $ relations = $ this -> getRelations ( ) ; $ this -> model = $ this -> model -> with ( $ relations ) -> findOrFail ( $ id ) ; //        static::doNotSnakeAttributes($this->model); $ data = $ this -> model -> toArray ( ) ; $ this -> builder -> fields ( ) -> each ( function ( Field $ field ) use ( $ data ) { $ field -> fill ( $ data ) ; } ) ; }
docstring: Set all fields value in form.
  
  @param $id
docstring_tokens: Set all fields value in form .