ModelBundle/Repository/NodeRepository.php
public function findAllRoutePattern($language, $siteId)
    {
        $qa = $this->createAggregationQueryBuilderWithSiteIdAndLanguage($siteId, $language);
        $qa->project(array(
            'routePattern' => true,
            'nodeId' => true,
            'parentId' => true,
        ));

        return $qa->getQuery()->aggregate()->toArray();
    }
public function findAllRoutePattern($language, $siteId)
    {
        $qa = $this->createAggregationQueryBuilderWithSiteIdAndLanguage($siteId, $language);
        $qa->project(array(
            'routePattern' => true,
            'nodeId' => true,
            'parentId' => true,
        ));

        return $qa->getQuery()->aggregate()->toArray();
    }
public function findAllRoutePattern ( $ language , $ siteId ) { $ qa = $ this -> createAggregationQueryBuilderWithSiteIdAndLanguage ( $ siteId , $ language ) ; $ qa -> project ( array ( 'routePattern' => true , 'nodeId' => true , 'parentId' => true , ) ) ; return $ qa -> getQuery ( ) -> aggregate ( ) -> toArray ( ) ; }
@param string $language
@param string $siteId

@return array
@param string $language @param string $siteId