ModelBundle/Repository/NodeRepository.php
public function findPublishedByLanguageAndSiteId($language, $siteId)
    {
        $qa = $this->createAggregationQuery();
        $qa->match(
            array(
                'siteId'=> $siteId,
                'language'=> $language,
                'status.publishedState' => true,
                'nodeType' => NodeInterface::TYPE_DEFAULT
            )
        );

        return $this->hydrateAggregateQuery($qa);
    }
public function findPublishedByLanguageAndSiteId($language, $siteId)
    {
        $qa = $this->createAggregationQuery();
        $qa->match(
            array(
                'siteId'=> $siteId,
                'language'=> $language,
                'status.publishedState' => true,
                'nodeType' => NodeInterface::TYPE_DEFAULT
            )
        );

        return $this->hydrateAggregateQuery($qa);
    }
public function findPublishedByLanguageAndSiteId ( $ language , $ siteId ) { $ qa = $ this -> createAggregationQuery ( ) ; $ qa -> match ( array ( 'siteId' => $ siteId , 'language' => $ language , 'status.publishedState' => true , 'nodeType' => NodeInterface :: TYPE_DEFAULT ) ) ; return $ this -> hydrateAggregateQuery ( $ qa ) ; }
@param string $language
@param string $siteId

@return ReadNodeInterface
@param string $language @param string $siteId