public function refreshFields()
    {
        if ($this->id === null) {
            $this->original = [];
            return $this->fields = [];
        }
        
        $this->fields = static::query()->getById($this->id)->fields;
        $this->original = $this->fields;
        
        $this->fieldsAreFetched = true;
        
        return $this->fields;
    }
public function refreshFields()
    {
        if ($this->id === null) {
            $this->original = [];
            return $this->fields = [];
        }
        
        $this->fields = static::query()->getById($this->id)->fields;
        $this->original = $this->fields;
        
        $this->fieldsAreFetched = true;
        
        return $this->fields;
    }
public function refreshFields ( ) { if ( $ this -> id === null ) { $ this -> original = [ ] ; return $ this -> fields = [ ] ; } $ this -> fields = static :: query ( ) -> getById ( $ this -> id ) -> fields ; $ this -> original = $ this -> fields ; $ this -> fieldsAreFetched = true ; return $ this -> fields ; }
Refresh model fields and save them to a class field.

@return array
Refresh model fields and save them to a class field .