@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | * Construct a Builder |
112 | 112 | * |
113 | 113 | * @param DocumentManager $dm |
114 | - * @param string[]|string|null $documentName (optional) an array of document names, the document name, or none |
|
114 | + * @param string|null $documentName (optional) an array of document names, the document name, or none |
|
115 | 115 | */ |
116 | 116 | public function __construct(DocumentManager $dm, $documentName = null) |
117 | 117 | { |
@@ -723,7 +723,6 @@ discard block |
||
723 | 723 | * |
724 | 724 | * @see Expr::geoWithinPolygon() |
725 | 725 | * @see http://docs.mongodb.org/manual/reference/operator/polygon/ |
726 | - * @param array $point,... Three or more point coordinate tuples |
|
727 | 726 | * @return $this |
728 | 727 | */ |
729 | 728 | public function geoWithinPolygon(/* array($x1, $y1), ... */) |
@@ -1115,7 +1114,7 @@ discard block |
||
1115 | 1114 | * @see Expr::mod() |
1116 | 1115 | * @see http://docs.mongodb.org/manual/reference/operator/mod/ |
1117 | 1116 | * @param float|integer $divisor |
1118 | - * @param float|integer $remainder |
|
1117 | + * @param integer $remainder |
|
1119 | 1118 | * @return $this |
1120 | 1119 | */ |
1121 | 1120 | public function mod($divisor, $remainder = 0) |
@@ -1293,7 +1292,7 @@ discard block |
||
1293 | 1292 | * If a custom callable is used, its signature should conform to the default |
1294 | 1293 | * Closure defined in {@link ReferencePrimer::__construct()}. |
1295 | 1294 | * |
1296 | - * @param boolean|callable $primer |
|
1295 | + * @param boolean $primer |
|
1297 | 1296 | * @return $this |
1298 | 1297 | * @throws \InvalidArgumentException If $primer is not boolean or callable |
1299 | 1298 | */ |
@@ -1708,7 +1707,7 @@ discard block |
||
1708 | 1707 | * field name (key) and order (value) pairs. |
1709 | 1708 | * |
1710 | 1709 | * @param array|string $fieldName Field name or array of field/order pairs |
1711 | - * @param int|string $order Field order (if one field is specified) |
|
1710 | + * @param integer $order Field order (if one field is specified) |
|
1712 | 1711 | * @return $this |
1713 | 1712 | */ |
1714 | 1713 | public function sort($fieldName, $order = 1) |
@@ -1921,7 +1920,6 @@ discard block |
||
1921 | 1920 | * @see Builder::geoWithinPolygon() |
1922 | 1921 | * @see Expr::withinPolygon() |
1923 | 1922 | * @see http://docs.mongodb.org/manual/reference/operator/polygon/ |
1924 | - * @param array $point,... Three or more point coordinate tuples |
|
1925 | 1923 | * @return $this |
1926 | 1924 | */ |
1927 | 1925 | public function withinPolygon(/* array($x1, $y1), array($x2, $y2), ... */) |
@@ -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. |
@@ -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']) { |
@@ -366,7 +366,7 @@ |
||
366 | 366 | * |
367 | 367 | * @see http://docs.mongodb.org/manual/reference/operator/aggregation/out/ |
368 | 368 | * |
369 | - * @param string $collection |
|
369 | + * @param string $from |
|
370 | 370 | * @return Stage\Out |
371 | 371 | */ |
372 | 372 | public function out($from) |
@@ -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 | { |