protected function saveRevision($publishRevision)
    {
        if (!$this->revision->exists && !$publishRevision) {
            $this->revision->published = $publishRevision;
        }

        $this->revision->content_id = $this->content->id;
        $this->revision->save();

        if ($publishRevision) {
            $this->unpublishOtherRevisions();
        }
    }
protected function saveRevision($publishRevision)
    {
        if (!$this->revision->exists && !$publishRevision) {
            $this->revision->published = $publishRevision;
        }

        $this->revision->content_id = $this->content->id;
        $this->revision->save();

        if ($publishRevision) {
            $this->unpublishOtherRevisions();
        }
    }
protected function saveRevision ( $ publishRevision ) { if ( ! $ this -> revision -> exists && ! $ publishRevision ) { $ this -> revision -> published = $ publishRevision ; } $ this -> revision -> content_id = $ this -> content -> id ; $ this -> revision -> save ( ) ; if ( $ publishRevision ) { $ this -> unpublishOtherRevisions ( ) ; } }
Save the revision

@param bool $publishRevision Should we immediately publish this revision, true by default
Save the revision