src/Sulu/Component/Content/Repository/ContentRepository.php
private function resolvePathByUuid($uuid)
    {
        $queryBuilder = new QueryBuilder($this->qomFactory);

        $queryBuilder
            ->select('node', 'jcr:uuid', 'uuid')
            ->from($this->qomFactory->selector('node', 'nt:unstructured'))
            ->where(
                $this->qomFactory->comparison(
                    $this->qomFactory->propertyValue('node', 'jcr:uuid'),
                    '=',
                    $this->qomFactory->literal($uuid)
                )
            );

        $rows = $queryBuilder->execute();

        if (1 !== count(iterator_to_array($rows->getRows()))) {
            throw new ItemNotFoundException();
        }

        return $rows->getRows()->current()->getPath();
    }
private function resolvePathByUuid($uuid)
    {
        $queryBuilder = new QueryBuilder($this->qomFactory);

        $queryBuilder
            ->select('node', 'jcr:uuid', 'uuid')
            ->from($this->qomFactory->selector('node', 'nt:unstructured'))
            ->where(
                $this->qomFactory->comparison(
                    $this->qomFactory->propertyValue('node', 'jcr:uuid'),
                    '=',
                    $this->qomFactory->literal($uuid)
                )
            );

        $rows = $queryBuilder->execute();

        if (1 !== count(iterator_to_array($rows->getRows()))) {
            throw new ItemNotFoundException();
        }

        return $rows->getRows()->current()->getPath();
    }
private function resolvePathByUuid ( $ uuid ) { $ queryBuilder = new QueryBuilder ( $ this -> qomFactory ) ; $ queryBuilder -> select ( 'node' , 'jcr:uuid' , 'uuid' ) -> from ( $ this -> qomFactory -> selector ( 'node' , 'nt:unstructured' ) ) -> where ( $ this -> qomFactory -> comparison ( $ this -> qomFactory -> propertyValue ( 'node' , 'jcr:uuid' ) , '=' , $ this -> qomFactory -> literal ( $ uuid ) ) ) ; $ rows = $ queryBuilder -> execute ( ) ; if ( 1 !== count ( iterator_to_array ( $ rows -> getRows ( ) ) ) ) { throw new ItemNotFoundException ( ) ; } return $ rows -> getRows ( ) -> current ( ) -> getPath ( ) ; }
Resolve path for node with given uuid.

@param string $uuid

@return string

@throws ItemNotFoundException
Resolve path for node with given uuid .