@@ -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 |
@@ -325,6 +325,9 @@ discard block |
||
| 325 | 325 | return Type::convertPHPToDatabaseValue(Expr::convertExpression($expression)); |
| 326 | 326 | } |
| 327 | 327 | |
| 328 | + /** |
|
| 329 | + * @param string $fieldName |
|
| 330 | + */ |
|
| 328 | 331 | private function convertTargetFieldName($fieldName) |
| 329 | 332 | { |
| 330 | 333 | if (is_array($fieldName)) { |
@@ -347,6 +350,9 @@ discard block |
||
| 347 | 350 | return $this->dm->getUnitOfWork()->getDocumentPersister($class->name); |
| 348 | 351 | } |
| 349 | 352 | |
| 353 | + /** |
|
| 354 | + * @param string $fieldName |
|
| 355 | + */ |
|
| 350 | 356 | private function getReferencedFieldName($fieldName, array $mapping) |
| 351 | 357 | { |
| 352 | 358 | if ( ! $mapping['isOwningSide']) { |