private function getQueryForDocument(object $document) : array
    {
        $id = $this->uow->getDocumentIdentifier($document);
        $id = $this->class->getDatabaseIdentifierValue($id);

        $shardKeyQueryPart = $this->getShardKeyQuery($document);
        return array_merge(['_id' => $id], $shardKeyQueryPart);
    }
private function getQueryForDocument(object $document) : array
    {
        $id = $this->uow->getDocumentIdentifier($document);
        $id = $this->class->getDatabaseIdentifierValue($id);

        $shardKeyQueryPart = $this->getShardKeyQuery($document);
        return array_merge(['_id' => $id], $shardKeyQueryPart);
    }
private function getQueryForDocument ( object $ document ) : array { $ id = $ this -> uow -> getDocumentIdentifier ( $ document ) ; $ id = $ this -> class -> getDatabaseIdentifierValue ( $ id ) ; $ shardKeyQueryPart = $ this -> getShardKeyQuery ( $ document ) ; return array_merge ( [ '_id' => $ id ] , $ shardKeyQueryPart ) ; }
Get shard key aware query for single document.
Get shard key aware query for single document .