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

        $queryBuilder
            ->select('node', 'jcr:uuid', 'uuid')
            ->from($this->qomFactory->selector('node', 'nt:unstructured'))
            ->where($this->qomFactory->childNode('node', $row->getPath()))
            ->setMaxResults(1);

        $result = $queryBuilder->execute();

        return count(iterator_to_array($result->getRows())) > 0;
    }
private function resolveHasChildren(Row $row)
    {
        $queryBuilder = new QueryBuilder($this->qomFactory);

        $queryBuilder
            ->select('node', 'jcr:uuid', 'uuid')
            ->from($this->qomFactory->selector('node', 'nt:unstructured'))
            ->where($this->qomFactory->childNode('node', $row->getPath()))
            ->setMaxResults(1);

        $result = $queryBuilder->execute();

        return count(iterator_to_array($result->getRows())) > 0;
    }
private function resolveHasChildren ( Row $ row ) { $ queryBuilder = new QueryBuilder ( $ this -> qomFactory ) ; $ queryBuilder -> select ( 'node' , 'jcr:uuid' , 'uuid' ) -> from ( $ this -> qomFactory -> selector ( 'node' , 'nt:unstructured' ) ) -> where ( $ this -> qomFactory -> childNode ( 'node' , $ row -> getPath ( ) ) ) -> setMaxResults ( 1 ) ; $ result = $ queryBuilder -> execute ( ) ; return count ( iterator_to_array ( $ result -> getRows ( ) ) ) > 0 ; }
Resolve property has-children with given node.

@param Row $row

@return bool
Resolve property has - children with given node .