ModelBundle/Repository/ContentRepository.php
public function findPublished(StatusableInterface $element)
    {
        $qa = $this->createAggregationQueryWithLanguageAndPublished($element->getLanguage());
        $qa->match(array('contentId' => $element->getContentId()));

        return $this->hydrateAggregateQuery($qa);
    }
public function findPublished(StatusableInterface $element)
    {
        $qa = $this->createAggregationQueryWithLanguageAndPublished($element->getLanguage());
        $qa->match(array('contentId' => $element->getContentId()));

        return $this->hydrateAggregateQuery($qa);
    }
@param StatusableInterface $element

@return array