src/Sulu/Component/DocumentManager/DocumentInspector.php
public function getParent($document)
    {
        $parentNode = $this->getNode($document)->getParent();

        if (!$parentNode) {
            return;
        }

        return $this->proxyFactory->createProxyForNode($document, $parentNode);
    }
public function getParent($document)
    {
        $parentNode = $this->getNode($document)->getParent();

        if (!$parentNode) {
            return;
        }

        return $this->proxyFactory->createProxyForNode($document, $parentNode);
    }
public function getParent ( $ document ) { $ parentNode = $ this -> getNode ( $ document ) -> getParent ( ) ; if ( ! $ parentNode ) { return ; } return $ this -> proxyFactory -> createProxyForNode ( $ document , $ parentNode ) ; }
Return the parent document for the given document.

@param object $document

@return object|null
Return the parent document for the given document .