|
@@ -24,8 +24,7 @@ |
|
|
block discarded – undo |
|
24
|
24
|
$this->schema = $reflectionHelper->createInstance($schemaClass)->schema(); |
|
25
|
25
|
$this->primaryKey = $primaryKey; |
|
26
|
26
|
$this->client = $client === null ? |
|
27
|
|
- new Client(Database::getUri(), Database::getUriOptions(), Database::getDriverOptions()) : |
|
28
|
|
- $client; |
|
|
27
|
+ new Client(Database::getUri(), Database::getUriOptions(), Database::getDriverOptions()) : $client; |
|
29
|
28
|
$this->databaseName = $databaseName === null ? getenv('MONGODB_DATABASE') : $databaseName; |
|
30
|
29
|
$mongodb = $this->client->selectDatabase($this->databaseName); |
|
31
|
30
|
$this->collection = $mongodb->selectCollection($this->resourceName); |
Please login to merge, or discard this patch.