@@ -74,6 +74,9 @@ |
||
| 74 | 74 | $this->filter = []; |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | + /** |
|
| 78 | + * @param string $logical |
|
| 79 | + */ |
|
| 77 | 80 | protected function parseWhere($conditions, $logical) |
| 78 | 81 | { |
| 79 | 82 | $subGroup = []; |
@@ -19,8 +19,7 @@ |
||
| 19 | 19 | public function __construct(Client $client = null, $databaseName = null) |
| 20 | 20 | {
|
| 21 | 21 | $this->client = $client === null ? |
| 22 | - new Client(self::getUri(), self::getUriOptions(), self::getDriverOptions()) : |
|
| 23 | - $client; |
|
| 22 | + new Client(self::getUri(), self::getUriOptions(), self::getDriverOptions()) : $client; |
|
| 24 | 23 | $this->databaseName = $databaseName === null ? getenv('MONGODB_DATABASE') : $databaseName;
|
| 25 | 24 | } |
| 26 | 25 | |
@@ -18,8 +18,7 @@ |
||
| 18 | 18 | $this->resourceName = $resourceName; |
| 19 | 19 | $this->primaryKey = $primaryKey; |
| 20 | 20 | $this->client = $client === null ? |
| 21 | - new Client(Database::getUri(), Database::getUriOptions(), Database::getDriverOptions()) : |
|
| 22 | - $client; |
|
| 21 | + new Client(Database::getUri(), Database::getUriOptions(), Database::getDriverOptions()) : $client; |
|
| 23 | 22 | $this->databaseName = $databaseName === null ? getenv('MONGODB_DATABASE') : $databaseName; |
| 24 | 23 | $mongodb = $this->client->selectDatabase($this->databaseName); |
| 25 | 24 | $this->collection = $mongodb->selectCollection($this->resourceName); |