ModelBundle/Repository/NodeRepository.php
public function findAllPublishedSpecialPage($language, $siteId)
    {
        $qa = $this->createAggregationQueryBuilderWithSiteIdAndLanguage($siteId, $language);
        $filter = array(
            'status.publishedState' => true,
            'deleted' => false,
            'specialPageName' => array('$exists' => true),
        );
        $qa->match($filter);

        return $this->hydrateAggregateQuery($qa);
    }
public function findAllPublishedSpecialPage($language, $siteId)
    {
        $qa = $this->createAggregationQueryBuilderWithSiteIdAndLanguage($siteId, $language);
        $filter = array(
            'status.publishedState' => true,
            'deleted' => false,
            'specialPageName' => array('$exists' => true),
        );
        $qa->match($filter);

        return $this->hydrateAggregateQuery($qa);
    }
@param string $language
@param string $siteId

@return array