ModelBundle/Repository/ContentRepository.php
public function findAllPublishedByContentId($contentId)
    {
        $qa = $this->createAggregationQuery();
        $filter['status.publishedState'] = true;
        $filter['deleted'] = false;
        $filter['contentId'] = $contentId;
        $qa->match($filter);

        return $this->hydrateAggregateQuery($qa);
    }
public function findAllPublishedByContentId($contentId)
    {
        $qa = $this->createAggregationQuery();
        $filter['status.publishedState'] = true;
        $filter['deleted'] = false;
        $filter['contentId'] = $contentId;
        $qa->match($filter);

        return $this->hydrateAggregateQuery($qa);
    }
@param string $contentId

@return array