ModelBundle/Repository/RepositoryTrait/StatusableTrait.php
public function hasStatusedElement(StatusInterface $status)
    {
        $qa = $this->createAggregationQuery();
        $qa->match(array('status._id' => new \MongoId($status->getId())));

        return 0 !== $this->countDocumentAggregateQuery($qa);
    }
public function hasStatusedElement(StatusInterface $status)
    {
        $qa = $this->createAggregationQuery();
        $qa->match(array('status._id' => new \MongoId($status->getId())));

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

@return bool