ModelBundle/Repository/ContentRepository.php
public function findPublishedVersion($contentId, $language)
    {
        $qa = $this->createAggregationQueryWithLanguageAndPublished($language);

        $qa->match(array('contentId' => $contentId));

        return $this->singleHydrateAggregateQuery($qa);
    }
public function findPublishedVersion($contentId, $language)
    {
        $qa = $this->createAggregationQueryWithLanguageAndPublished($language);

        $qa->match(array('contentId' => $contentId));

        return $this->singleHydrateAggregateQuery($qa);
    }
public function findPublishedVersion ( $ contentId , $ language ) { $ qa = $ this -> createAggregationQueryWithLanguageAndPublished ( $ language ) ; $ qa -> match ( array ( 'contentId' => $ contentId ) ) ; return $ this -> singleHydrateAggregateQuery ( $ qa ) ; }
@param string $contentId
@param string $language

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