ModelBundle/Repository/ContentRepository.php
public function findOnePublished($contentId, $language, $siteId)
    {
        $qa = $this->createAggregationQueryWithLanguageAndPublished($language);
        $filter['contentId'] = $contentId;
        $qa->match($filter);

        return $this->singleHydrateAggregateQuery($qa);
    }
public function findOnePublished($contentId, $language, $siteId)
    {
        $qa = $this->createAggregationQueryWithLanguageAndPublished($language);
        $filter['contentId'] = $contentId;
        $qa->match($filter);

        return $this->singleHydrateAggregateQuery($qa);
    }
public function findOnePublished ( $ contentId , $ language , $ siteId ) { $ qa = $ this -> createAggregationQueryWithLanguageAndPublished ( $ language ) ; $ filter [ 'contentId' ] = $ contentId ; $ qa -> match ( $ filter ) ; return $ this -> singleHydrateAggregateQuery ( $ qa ) ; }
@param string $contentId
@param string $language
@param string $siteId

@return ContentInterface
@param string $contentId @param string $language @param string $siteId