@@ -383,7 +383,6 @@ |
||
| 383 | 383 | * Returns an array containing the specified keys and their values from the |
| 384 | 384 | * query array, provided they exist and are not null. |
| 385 | 385 | * |
| 386 | - * @param string $key,... One or more option keys to be read |
|
| 387 | 386 | * @return array |
| 388 | 387 | */ |
| 389 | 388 | private function getQueryOptions(/* $key, ... */) |
@@ -26,7 +26,6 @@ |
||
| 26 | 26 | use Doctrine\ODM\MongoDB\PersistentCollection\PersistentCollectionInterface; |
| 27 | 27 | use Doctrine\ODM\MongoDB\Proxy\Proxy; |
| 28 | 28 | use Doctrine\ODM\MongoDB\UnitOfWork; |
| 29 | -use MongoDB\Driver\ReadPreference; |
|
| 30 | 29 | |
| 31 | 30 | /** |
| 32 | 31 | * The ReferencePrimer is responsible for priming reference relationships. |
@@ -443,7 +443,7 @@ discard block |
||
| 443 | 443 | * the unique index. Additionally, the background option is only |
| 444 | 444 | * relevant to index creation and is not considered. |
| 445 | 445 | * |
| 446 | - * @param array|IndexInfo $mongoIndex Mongo index data. |
|
| 446 | + * @param IndexInfo $mongoIndex Mongo index data. |
|
| 447 | 447 | * @param array $documentIndex Document index data. |
| 448 | 448 | * @return bool True if the indexes are equivalent, otherwise false. |
| 449 | 449 | */ |
@@ -589,9 +589,9 @@ discard block |
||
| 589 | 589 | } |
| 590 | 590 | |
| 591 | 591 | /** |
| 592 | - * @param $documentName |
|
| 592 | + * @param string $documentName |
|
| 593 | 593 | * |
| 594 | - * @return array |
|
| 594 | + * @return string |
|
| 595 | 595 | */ |
| 596 | 596 | private function runShardCollectionCommand($documentName) |
| 597 | 597 | { |
@@ -23,7 +23,6 @@ |
||
| 23 | 23 | use Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory; |
| 24 | 24 | use Doctrine\ODM\MongoDB\Mapping\ClassMetadataInfo; |
| 25 | 25 | use MongoDB\Driver\Exception\RuntimeException; |
| 26 | -use MongoDB\Driver\WriteConcern; |
|
| 27 | 26 | use MongoDB\Model\IndexInfo; |
| 28 | 27 | |
| 29 | 28 | class SchemaManager |