Commit eee864a9 authored by Jeremy Mikola's avatar Jeremy Mikola

Ensure Client's $writeConcern property is initialized

Fixes a bug introduced in 21b7d92a for PHPLIB-200
parent 818e4506
...@@ -25,6 +25,7 @@ class Client ...@@ -25,6 +25,7 @@ class Client
private $manager; private $manager;
private $uri; private $uri;
private $typeMap; private $typeMap;
private $writeConcern;
/** /**
* Constructs a new Client instance. * Constructs a new Client instance.
...@@ -63,6 +64,7 @@ class Client ...@@ -63,6 +64,7 @@ class Client
unset($driverOptions['typeMap']); unset($driverOptions['typeMap']);
$this->manager = new Manager($uri, $uriOptions, $driverOptions); $this->manager = new Manager($uri, $uriOptions, $driverOptions);
$this->writeConcern = $this->manager->getWriteConcern();
} }
/** /**
...@@ -77,6 +79,7 @@ class Client ...@@ -77,6 +79,7 @@ class Client
'manager' => $this->manager, 'manager' => $this->manager,
'uri' => $this->uri, 'uri' => $this->uri,
'typeMap' => $this->typeMap, 'typeMap' => $this->typeMap,
'writeConcern' => $this->writeConcern,
]; ];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment