private function edit()
    {
        $columns = [];
        $values = [];
        //
        if ($this->_tracked) {
            $this->edited_at = Time::current();
        }
        //
        foreach ($this->_columns as $value) {
            if ($value != $this->_keyName) {
                $columns[] = $value;
                $values[] = empty($this->$value) ? null : $this->$value;
            }
        }
        //
        return $this->update($columns, $values);
    }
private function edit()
    {
        $columns = [];
        $values = [];
        //
        if ($this->_tracked) {
            $this->edited_at = Time::current();
        }
        //
        foreach ($this->_columns as $value) {
            if ($value != $this->_keyName) {
                $columns[] = $value;
                $values[] = empty($this->$value) ? null : $this->$value;
            }
        }
        //
        return $this->update($columns, $values);
    }
private function edit ( ) { $ columns = [ ] ; $ values = [ ] ; // if ( $ this -> _tracked ) { $ this -> edited_at = Time :: current ( ) ; } // foreach ( $ this -> _columns as $ value ) { if ( $ value != $ this -> _keyName ) { $ columns [ ] = $ value ; $ values [ ] = empty ( $ this -> $ value ) ? null : $ this -> $ value ; } } // return $ this -> update ( $ columns , $ values ) ; }
function to edit data in data table.

@return bool
function to edit data in data table .