public function hasContentIdWithoutAutoUnpublishToState($contentId)
    {
        $qa = $this->createAggregationQuery();
        $qa->match(
            array(
                'contentId'  => $contentId,
                'status.autoUnpublishToState' => false
            )
        );

        return 0 !== $this->countDocumentAggregateQuery($qa);
    }
public function hasContentIdWithoutAutoUnpublishToState($contentId)
    {
        $qa = $this->createAggregationQuery();
        $qa->match(
            array(
                'contentId'  => $contentId,
                'status.autoUnpublishToState' => false
            )
        );

        return 0 !== $this->countDocumentAggregateQuery($qa);
    }
@param string $contentId

@return int