@@ -605,7 +605,6 @@ discard block |
||
605 | 605 | * |
606 | 606 | * @see Builder::geoWithinPolygon() |
607 | 607 | * @see http://docs.mongodb.org/manual/reference/operator/polygon/ |
608 | - * @param array $point,... Three or more point coordinate tuples |
|
609 | 608 | * @return $this |
610 | 609 | * @throws \InvalidArgumentException if less than three points are given |
611 | 610 | */ |
@@ -846,7 +845,7 @@ discard block |
||
846 | 845 | * @see Builder::mod() |
847 | 846 | * @see http://docs.mongodb.org/manual/reference/operator/mod/ |
848 | 847 | * @param float|integer $divisor |
849 | - * @param float|integer $remainder |
|
848 | + * @param integer $remainder |
|
850 | 849 | * @return $this |
851 | 850 | */ |
852 | 851 | public function mod($divisor, $remainder = 0) |
@@ -1499,7 +1498,6 @@ discard block |
||
1499 | 1498 | * @deprecated 1.1 MongoDB 2.4 deprecated $within in favor of $geoWithin |
1500 | 1499 | * @see Expr::geoWithinPolygon() |
1501 | 1500 | * @see http://docs.mongodb.org/manual/reference/operator/polygon/ |
1502 | - * @param array $point,... Three or more point coordinate tuples |
|
1503 | 1501 | * @return $this |
1504 | 1502 | * @throws \InvalidArgumentException if less than three points are given |
1505 | 1503 | */ |
@@ -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. |
@@ -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 |
@@ -570,7 +570,7 @@ |
||
570 | 570 | /** |
571 | 571 | * @param string $documentName |
572 | 572 | * |
573 | - * @return array |
|
573 | + * @return string |
|
574 | 574 | */ |
575 | 575 | private function runShardCollectionCommand($documentName) |
576 | 576 | { |
@@ -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']) { |
@@ -171,6 +171,9 @@ |
||
171 | 171 | return $this; |
172 | 172 | } |
173 | 173 | |
174 | + /** |
|
175 | + * @param string $fieldName |
|
176 | + */ |
|
174 | 177 | protected function prepareFieldName($fieldName, ClassMetadata $class = null) |
175 | 178 | { |
176 | 179 | if ( ! $class) { |
@@ -303,7 +303,6 @@ discard block |
||
303 | 303 | * |
304 | 304 | * @see Expr::geoWithinPolygon() |
305 | 305 | * @see http://docs.mongodb.org/manual/reference/operator/polygon/ |
306 | - * @param array $point,... Three or more point coordinate tuples |
|
307 | 306 | * @return $this |
308 | 307 | */ |
309 | 308 | public function geoWithinPolygon(/* array($x1, $y1), ... */) |
@@ -476,7 +475,7 @@ discard block |
||
476 | 475 | * @see Expr::mod() |
477 | 476 | * @see http://docs.mongodb.org/manual/reference/operator/mod/ |
478 | 477 | * @param float|integer $divisor |
479 | - * @param float|integer $remainder |
|
478 | + * @param integer $remainder |
|
480 | 479 | * @return $this |
481 | 480 | */ |
482 | 481 | public function mod($divisor, $remainder = 0) |
@@ -46,6 +46,7 @@ |
||
46 | 46 | |
47 | 47 | /** |
48 | 48 | * {@inheritdoc} |
49 | + * @param string $collection |
|
49 | 50 | */ |
50 | 51 | public function out($collection) |
51 | 52 | { |
@@ -1030,7 +1030,7 @@ discard block |
||
1030 | 1030 | /** |
1031 | 1031 | * Gets the ReflectionProperties of the mapped class. |
1032 | 1032 | * |
1033 | - * @return array An array of ReflectionProperty instances. |
|
1033 | + * @return \ReflectionProperty[] An array of ReflectionProperty instances. |
|
1034 | 1034 | */ |
1035 | 1035 | public function getReflectionProperties() |
1036 | 1036 | { |
@@ -1525,6 +1525,7 @@ discard block |
||
1525 | 1525 | * {@inheritDoc} |
1526 | 1526 | * |
1527 | 1527 | * Checks whether the class has a mapped association (embed or reference) with the given field name. |
1528 | + * @param string $fieldName |
|
1528 | 1529 | */ |
1529 | 1530 | public function hasAssociation($fieldName) |
1530 | 1531 | { |
@@ -1759,7 +1760,7 @@ discard block |
||
1759 | 1760 | * |
1760 | 1761 | * @param string $dbFieldName |
1761 | 1762 | * |
1762 | - * @return array |
|
1763 | + * @return string |
|
1763 | 1764 | * @throws MappingException |
1764 | 1765 | */ |
1765 | 1766 | public function getFieldMappingByDbFieldName($dbFieldName) |