main/core/Repository/ResourceQueryBuilder.php
public function whereParentIs(ResourceNode $parent)
    {
        $this->addWhereClause('node.parent = :ar_parentId');
        $this->parameters[':ar_parentId'] = $parent->getId();

        return $this;
    }
public function whereParentIs(ResourceNode $parent)
    {
        $this->addWhereClause('node.parent = :ar_parentId');
        $this->parameters[':ar_parentId'] = $parent->getId();

        return $this;
    }
public function whereParentIs ( ResourceNode $ parent ) { $ this -> addWhereClause ( 'node.parent = :ar_parentId' ) ; $ this -> parameters [ ':ar_parentId' ] = $ parent -> getId ( ) ; return $ this ; }
Filters nodes that are the immediate children of a given node.

@param ResourceNode $parent

@return ResourceQueryBuilder
Filters nodes that are the immediate children of a given node .