src/Sulu/Bundle/PageBundle/Command/WebspaceCopyCommand.php
protected function clearDestinationWebspace()
    {
        $homeDocument = $this->documentManager->find(
            $this->sessionManager->getContentPath($this->webspaceKeyDestination)
        );
        foreach ($homeDocument->getChildren() as $child) {
            $this->output->writeln('<info>Processing: </info>' . $child->getPath());
            $this->documentManager->remove($child);
            $this->documentManager->flush();
        }
    }
protected function clearDestinationWebspace()
    {
        $homeDocument = $this->documentManager->find(
            $this->sessionManager->getContentPath($this->webspaceKeyDestination)
        );
        foreach ($homeDocument->getChildren() as $child) {
            $this->output->writeln('<info>Processing: </info>' . $child->getPath());
            $this->documentManager->remove($child);
            $this->documentManager->flush();
        }
    }
protected function clearDestinationWebspace ( ) { $ homeDocument = $ this -> documentManager -> find ( $ this -> sessionManager -> getContentPath ( $ this -> webspaceKeyDestination ) ) ; foreach ( $ homeDocument -> getChildren ( ) as $ child ) { $ this -> output -> writeln ( '<info>Processing: </info>' . $ child -> getPath ( ) ) ; $ this -> documentManager -> remove ( $ child ) ; $ this -> documentManager -> flush ( ) ; } }
Removes all pages from given webspace.
Removes all pages from given webspace .