private function isValidForVersioning()
    {
        $dontVersionFields = isset( $this->dontVersionFields ) ? $this->dontVersionFields : [];
        $removeableKeys    = array_merge($dontVersionFields, [$this->getUpdatedAtColumn()]);

        if (method_exists($this, 'getDeletedAtColumn')) {
            $removeableKeys[] = $this->getDeletedAtColumn();
        }

        return ( count(array_diff_key($this->versionableDirtyData, array_flip($removeableKeys))) > 0 );
    }
private function isValidForVersioning()
    {
        $dontVersionFields = isset( $this->dontVersionFields ) ? $this->dontVersionFields : [];
        $removeableKeys    = array_merge($dontVersionFields, [$this->getUpdatedAtColumn()]);

        if (method_exists($this, 'getDeletedAtColumn')) {
            $removeableKeys[] = $this->getDeletedAtColumn();
        }

        return ( count(array_diff_key($this->versionableDirtyData, array_flip($removeableKeys))) > 0 );
    }
private function isValidForVersioning ( ) { $ dontVersionFields = isset ( $ this -> dontVersionFields ) ? $ this -> dontVersionFields : [ ] ; $ removeableKeys = array_merge ( $ dontVersionFields , [ $ this -> getUpdatedAtColumn ( ) ] ) ; if ( method_exists ( $ this , 'getDeletedAtColumn' ) ) { $ removeableKeys [ ] = $ this -> getDeletedAtColumn ( ) ; } return ( count ( array_diff_key ( $ this -> versionableDirtyData , array_flip ( $ removeableKeys ) ) ) > 0 ) ; }
Determine if a new version should be created for this model.

@return bool
Determine if a new version should be created for this model .