@@ -137,6 +137,9 @@ |
||
| 137 | 137 | return $this; |
| 138 | 138 | } |
| 139 | 139 | |
| 140 | + /** |
|
| 141 | + * @param ClassMetadata $class |
|
| 142 | + */ |
|
| 140 | 143 | protected function prepareFieldName(string $fieldName, ?ClassMetadata $class = null) : string |
| 141 | 144 | { |
| 142 | 145 | if (! $class) { |
@@ -630,6 +630,7 @@ discard block |
||
| 630 | 630 | * |
| 631 | 631 | * @throws InvalidArgumentException If document class is not this class or |
| 632 | 632 | * a Proxy of this class. |
| 633 | + * @param \Doctrine\ODM\MongoDB\Event\PreLoadEventArgs[] $arguments |
|
| 633 | 634 | */ |
| 634 | 635 | public function invokeLifecycleCallbacks(string $event, object $document, ?array $arguments = null) : void |
| 635 | 636 | { |
@@ -1282,6 +1283,7 @@ discard block |
||
| 1282 | 1283 | * {@inheritDoc} |
| 1283 | 1284 | * |
| 1284 | 1285 | * Checks whether the class has a mapped association (embed or reference) with the given field name. |
| 1286 | + * @param string|null $fieldName |
|
| 1285 | 1287 | */ |
| 1286 | 1288 | public function hasAssociation($fieldName) : bool |
| 1287 | 1289 | { |
@@ -1941,7 +1943,7 @@ discard block |
||
| 1941 | 1943 | * - reflClass (ReflectionClass) |
| 1942 | 1944 | * - reflFields (ReflectionProperty array) |
| 1943 | 1945 | * |
| 1944 | - * @return array The names of all the fields that should be serialized. |
|
| 1946 | + * @return string[] The names of all the fields that should be serialized. |
|
| 1945 | 1947 | */ |
| 1946 | 1948 | public function __sleep() |
| 1947 | 1949 | { |
@@ -474,6 +474,7 @@ discard block |
||
| 474 | 474 | |
| 475 | 475 | /** |
| 476 | 476 | * Finds documents by a set of criteria. |
| 477 | + * @param integer $limit |
|
| 477 | 478 | */ |
| 478 | 479 | public function loadAll(array $criteria = [], ?array $sort = null, ?int $limit = null, ?int $skip = null) : Iterator |
| 479 | 480 | { |
@@ -583,7 +584,7 @@ discard block |
||
| 583 | 584 | * @param object $result The query result. |
| 584 | 585 | * @param object $document The document object to fill, if any. |
| 585 | 586 | * @param array $hints Hints for document creation. |
| 586 | - * @return object The filled and managed document object or NULL, if the query result is empty. |
|
| 587 | + * @return null|\Doctrine\ODM\MongoDB\object The filled and managed document object or NULL, if the query result is empty. |
|
| 587 | 588 | */ |
| 588 | 589 | private function createDocument($result, ?object $document = null, array $hints = []) : ?object |
| 589 | 590 | { |
@@ -36,6 +36,7 @@ discard block |
||
| 36 | 36 | /** |
| 37 | 37 | * Ensure indexes are created for all documents that can be loaded with the |
| 38 | 38 | * metadata factory. |
| 39 | + * @param integer $timeout |
|
| 39 | 40 | */ |
| 40 | 41 | public function ensureIndexes(?int $timeout = null) : void |
| 41 | 42 | { |
@@ -53,6 +54,7 @@ discard block |
||
| 53 | 54 | * |
| 54 | 55 | * Indexes that exist in MongoDB but not the document metadata will be |
| 55 | 56 | * deleted. |
| 57 | + * @param integer $timeout |
|
| 56 | 58 | */ |
| 57 | 59 | public function updateIndexes(?int $timeout = null) : void |
| 58 | 60 | { |