@@ -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) |
@@ -224,6 +224,9 @@ discard block |
||
224 | 224 | $class->addIndex($keys, $options); |
225 | 225 | } |
226 | 226 | |
227 | + /** |
|
228 | + * @param string $type |
|
229 | + */ |
|
227 | 230 | private function addEmbedMapping(ClassMetadataInfo $class, $embed, $type) |
228 | 231 | { |
229 | 232 | $attributes = $embed->attributes(); |
@@ -261,6 +264,9 @@ discard block |
||
261 | 264 | $this->addFieldMapping($class, $mapping); |
262 | 265 | } |
263 | 266 | |
267 | + /** |
|
268 | + * @param string $type |
|
269 | + */ |
|
264 | 270 | private function addReferenceMapping(ClassMetadataInfo $class, $reference, $type) |
265 | 271 | { |
266 | 272 | $cascade = array_keys((array) $reference->cascade); |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | /** |
97 | 97 | * Generates a closure capable of initializing a proxy |
98 | 98 | * |
99 | - * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata |
|
99 | + * @param \Doctrine\ODM\MongoDB\Mapping\ClassMetadataInfo $classMetadata |
|
100 | 100 | * @param \Doctrine\ODM\MongoDB\Persisters\DocumentPersister $documentPersister |
101 | 101 | * @param \ReflectionProperty $reflectionId |
102 | 102 | * |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | /** |
179 | 179 | * Generates a closure capable of finalizing a cloned proxy |
180 | 180 | * |
181 | - * @param \Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata |
|
181 | + * @param \Doctrine\ODM\MongoDB\Mapping\ClassMetadataInfo $classMetadata |
|
182 | 182 | * @param \Doctrine\ODM\MongoDB\Persisters\DocumentPersister $documentPersister |
183 | 183 | * @param \ReflectionProperty $reflectionId |
184 | 184 | * |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Doctrine\Common\Collections\Collection; |
7 | 7 | use Doctrine\Common\Collections\Criteria; |
8 | 8 | use Doctrine\Common\Collections\Selectable; |
9 | -use Doctrine\Common\Inflector\Inflector; |
|
10 | 9 | use Doctrine\Common\Persistence\ObjectRepository; |
11 | 10 | use Doctrine\ODM\MongoDB\Mapping\ClassMetadata; |
12 | 11 | use Doctrine\ODM\MongoDB\Query\QueryExpressionVisitor; |