public function removeFromFolder(ObjectIdInterface $folderId)
    {
        $objectId = $this->getId();

        $this->getBinding()->getMultiFilingService()->removeObjectFromFolder(
            $this->getRepositoryId(),
            $objectId,
            $folderId->getId(),
            null
        );

        // remove object form cache
        $this->getSession()->removeObjectFromCache($this->getSession()->createObjectId($objectId));
    }
public function removeFromFolder(ObjectIdInterface $folderId)
    {
        $objectId = $this->getId();

        $this->getBinding()->getMultiFilingService()->removeObjectFromFolder(
            $this->getRepositoryId(),
            $objectId,
            $folderId->getId(),
            null
        );

        // remove object form cache
        $this->getSession()->removeObjectFromCache($this->getSession()->createObjectId($objectId));
    }
public function removeFromFolder ( ObjectIdInterface $ folderId ) { $ objectId = $ this -> getId ( ) ; $ this -> getBinding ( ) -> getMultiFilingService ( ) -> removeObjectFromFolder ( $ this -> getRepositoryId ( ) , $ objectId , $ folderId -> getId ( ) , null ) ; // remove object form cache $ this -> getSession ( ) -> removeObjectFromCache ( $ this -> getSession ( ) -> createObjectId ( $ objectId ) ) ; }
Removes this object from a folder.

@param ObjectIdInterface $folderId the object ID of the folder from which this object should be removed
Removes this object from a folder .