public function shutdownObject()
    {
        /** @var PersistentResource $resource */
        foreach ($this->resourceRepository->getAddedResources() as $resource) {
            if ($this->persistenceManager->isNewObject($resource)) {
                $this->deleteResource($resource, false);
            }
        }
    }
public function shutdownObject()
    {
        /** @var PersistentResource $resource */
        foreach ($this->resourceRepository->getAddedResources() as $resource) {
            if ($this->persistenceManager->isNewObject($resource)) {
                $this->deleteResource($resource, false);
            }
        }
    }
public function shutdownObject ( ) { /** @var PersistentResource $resource */ foreach ( $ this -> resourceRepository -> getAddedResources ( ) as $ resource ) { if ( $ this -> persistenceManager -> isNewObject ( $ resource ) ) { $ this -> deleteResource ( $ resource , false ) ; } } }
Checks if recently imported resources really have been persisted - and if not, removes its data from the
respective storage.

@return void
Checks if recently imported resources really have been persisted - and if not removes its data from the respective storage .