main/core/Repository/ResourceNodeRepository.php
public function findDescendants(
        ResourceNode $resource,
        $includeStartNode = false,
        $filterResourceType = null
    ) {
        $this->builder->selectAsEntity(true)
            ->wherePathLike($resource->getPath(), $includeStartNode);

        if ($filterResourceType) {
            $this->builder->whereTypeIn([$filterResourceType]);
        }

        $query = $this->_em->createQuery($this->builder->getDql());
        $query->setParameters($this->builder->getParameters());

        return $this->executeQuery($query, null, null, false);
    }
public function findDescendants(
        ResourceNode $resource,
        $includeStartNode = false,
        $filterResourceType = null
    ) {
        $this->builder->selectAsEntity(true)
            ->wherePathLike($resource->getPath(), $includeStartNode);

        if ($filterResourceType) {
            $this->builder->whereTypeIn([$filterResourceType]);
        }

        $query = $this->_em->createQuery($this->builder->getDql());
        $query->setParameters($this->builder->getParameters());

        return $this->executeQuery($query, null, null, false);
    }
public function findDescendants ( ResourceNode $ resource , $ includeStartNode = false , $ filterResourceType = null ) { $ this -> builder -> selectAsEntity ( true ) -> wherePathLike ( $ resource -> getPath ( ) , $ includeStartNode ) ; if ( $ filterResourceType ) { $ this -> builder -> whereTypeIn ( [ $ filterResourceType ] ) ; } $ query = $ this -> _em -> createQuery ( $ this -> builder -> getDql ( ) ) ; $ query -> setParameters ( $ this -> builder -> getParameters ( ) ) ; return $ this -> executeQuery ( $ query , null , null , false ) ; }
Returns the descendants of a resource.

@param ResourceNode $resource           The resource node to start with
@param bool         $includeStartNode   Whether the given resource should be included in the result
@param string       $filterResourceType A resource type to filter the results

@return array[ResourceNode]
Returns the descendants of a resource .