public function addNewRevision()
    {
        return $this->revisions->addNew(array(
            'component' => $this->component,
            'author' => get_viewer(),
            'owner' => $this->owner,
            'title' => $this->title,
            'description' => $this->description,
            'excerpt' => $this->excerpt,
            'revisionNum' => (int) $this->revisions->fetchValue('MAX(@col(revisionNum))') + 1,
        ));
    }
public function addNewRevision()
    {
        return $this->revisions->addNew(array(
            'component' => $this->component,
            'author' => get_viewer(),
            'owner' => $this->owner,
            'title' => $this->title,
            'description' => $this->description,
            'excerpt' => $this->excerpt,
            'revisionNum' => (int) $this->revisions->fetchValue('MAX(@col(revisionNum))') + 1,
        ));
    }
public function addNewRevision ( ) { return $ this -> revisions -> addNew ( array ( 'component' => $ this -> component , 'author' => get_viewer ( ) , 'owner' => $ this -> owner , 'title' => $ this -> title , 'description' => $ this -> description , 'excerpt' => $ this -> excerpt , 'revisionNum' => ( int ) $ this -> revisions -> fetchValue ( 'MAX(@col(revisionNum))' ) + 1 , ) ) ; }
Creates new revision.

@return ComArticlesDomainEntityRevision
Creates new revision .