ModelBundle/Repository/ContentRepository.php
public function findOneByLanguageAndVersion($contentId, $language, $version = null)
    {
        $qa = $this->createAggregationQueryWithContentIdAndLanguageAndVersion($contentId, $language, $version);

        return $this->singleHydrateAggregateQuery($qa);
    }
public function findOneByLanguageAndVersion($contentId, $language, $version = null)
    {
        $qa = $this->createAggregationQueryWithContentIdAndLanguageAndVersion($contentId, $language, $version);

        return $this->singleHydrateAggregateQuery($qa);
    }
public function findOneByLanguageAndVersion ( $ contentId , $ language , $ version = null ) { $ qa = $ this -> createAggregationQueryWithContentIdAndLanguageAndVersion ( $ contentId , $ language , $ version ) ; return $ this -> singleHydrateAggregateQuery ( $ qa ) ; }
@param string      $contentId
@param string      $language
@param string|null $version

@return ContentInterface|null
@param string $contentId @param string $language @param string|null $version