ModelBundle/Repository/ContentRepository.php
protected function createAggregationQueryWithLanguageAndPublished($language)
    {
        $qa = $this->createAggregationQueryWithLanguage($language);
        $qa->match(
            array(
                'deleted'               => false,
                'status.publishedState' => true,
            )
        );

        return $qa;
    }
protected function createAggregationQueryWithLanguageAndPublished($language)
    {
        $qa = $this->createAggregationQueryWithLanguage($language);
        $qa->match(
            array(
                'deleted'               => false,
                'status.publishedState' => true,
            )
        );

        return $qa;
    }
@param string $language

@return Stage