Skip to content

Commit a8c65c7

Browse files
committed
PHPLIB-325: Apply Collection typeMap to change streams
1 parent 1ee15ac commit a8c65c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Collection.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -967,6 +967,10 @@ public function watch(array $pipeline = [], array $options = [])
967967
$options['readConcern'] = $this->readConcern;
968968
}
969969

970+
if ( ! isset($options['typeMap'])) {
971+
$options['typeMap'] = $this->typeMap;
972+
}
973+
970974
$operation = new Watch($this->manager, $this->databaseName, $this->collectionName, $pipeline, $options);
971975

972976
return $operation->execute($server);

0 commit comments

Comments
 (0)