public function addToFolder(ObjectIdInterface $folderId, $allVersions = true)
    {
        $objectId = $this->getId();
        $this->getBinding()->getMultiFilingService()->addObjectToFolder(
            $this->getRepositoryId(),
            $objectId,
            $folderId->getId(),
            $allVersions
        );

        // remove object form cache
        $this->getSession()->removeObjectFromCache($this->getSession()->createObjectId($objectId));
    }
public function addToFolder(ObjectIdInterface $folderId, $allVersions = true)
    {
        $objectId = $this->getId();
        $this->getBinding()->getMultiFilingService()->addObjectToFolder(
            $this->getRepositoryId(),
            $objectId,
            $folderId->getId(),
            $allVersions
        );

        // remove object form cache
        $this->getSession()->removeObjectFromCache($this->getSession()->createObjectId($objectId));
    }
public function addToFolder ( ObjectIdInterface $ folderId , $ allVersions = true ) { $ objectId = $ this -> getId ( ) ; $ this -> getBinding ( ) -> getMultiFilingService ( ) -> addObjectToFolder ( $ this -> getRepositoryId ( ) , $ objectId , $ folderId -> getId ( ) , $ allVersions ) ; // remove object form cache $ this -> getSession ( ) -> removeObjectFromCache ( $ this -> getSession ( ) -> createObjectId ( $ objectId ) ) ; }
Adds this object to a folder.

@param ObjectIdInterface $folderId The folder into which the object is to be filed.
@param boolean $allVersions Add all versions of the object to the folder if the repository supports
version-specific filing. Defaults to <code>true</code>.
Adds this object to a folder .