ModelBundle/Repository/NodeRepository.php
public function findByParent($parentId, $siteId)
    {
        $qa = $this->createAggregationQueryBuilderWithSiteId($siteId);
        $qa->match(array('parentId' => $parentId));

        return $this->hydrateAggregateQuery($qa);
    }
public function findByParent($parentId, $siteId)
    {
        $qa = $this->createAggregationQueryBuilderWithSiteId($siteId);
        $qa->match(array('parentId' => $parentId));

        return $this->hydrateAggregateQuery($qa);
    }
public function findByParent ( $ parentId , $ siteId ) { $ qa = $ this -> createAggregationQueryBuilderWithSiteId ( $ siteId ) ; $ qa -> match ( array ( 'parentId' => $ parentId ) ) ; return $ this -> hydrateAggregateQuery ( $ qa ) ; }
@param string $parentId
@param string $siteId

@throws \Exception

@return mixed
@param string $parentId @param string $siteId