src/Sulu/Component/DocumentManager/ProxyFactory.php
public function createChildrenCollection($document, array $options = [])
    {
        $node = $this->registry->getNodeForDocument($document);
        $locale = $this->registry->getOriginalLocaleForDocument($document);

        return new ChildrenCollection(
            $node,
            $this->dispatcher,
            $locale,
            $options
        );
    }
public function createChildrenCollection($document, array $options = [])
    {
        $node = $this->registry->getNodeForDocument($document);
        $locale = $this->registry->getOriginalLocaleForDocument($document);

        return new ChildrenCollection(
            $node,
            $this->dispatcher,
            $locale,
            $options
        );
    }
public function createChildrenCollection ( $ document , array $ options = [ ] ) { $ node = $ this -> registry -> getNodeForDocument ( $ document ) ; $ locale = $ this -> registry -> getOriginalLocaleForDocument ( $ document ) ; return new ChildrenCollection ( $ node , $ this -> dispatcher , $ locale , $ options ) ; }
Create a new children collection for the given document.

@param object $document

@return ChildrenCollection
Create a new children collection for the given document .