Skip to content

Commit 1ea44f9

Browse files
committed
PHPLIB-164: Database::command() should use type map
This adds inheritance of the Database's type map option, which should have been added in 330e1e3.
1 parent af9bc65 commit 1ea44f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Database.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ public function command($command, array $options = [])
144144
$options['readPreference'] = $this->readPreference;
145145
}
146146

147+
if ( ! isset($options['typeMap'])) {
148+
$options['typeMap'] = $this->typeMap;
149+
}
150+
147151
$operation = new DatabaseCommand($this->databaseName, $command, $options);
148152
$server = $this->manager->selectServer($options['readPreference']);
149153

0 commit comments

Comments
 (0)