@@ -57,6 +57,9 @@ |
||
| 57 | 57 | $this->config = $config; |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | + /** |
|
| 61 | + * @param string $className |
|
| 62 | + */ |
|
| 60 | 63 | public function getMetadataFor($className) |
| 61 | 64 | { |
| 62 | 65 | return parent::getMetadataFor($this->dm->getClassNameResolver()->getRealClass($className)); |
@@ -483,6 +483,8 @@ |
||
| 483 | 483 | |
| 484 | 484 | /** |
| 485 | 485 | * Finds documents by a set of criteria. |
| 486 | + * @param integer $limit |
|
| 487 | + * @param integer $skip |
|
| 486 | 488 | */ |
| 487 | 489 | public function loadAll(array $criteria = [], ?array $sort = null, ?int $limit = null, ?int $skip = null) : Iterator |
| 488 | 490 | { |
@@ -87,6 +87,7 @@ |
||
| 87 | 87 | * expected version may be specified. |
| 88 | 88 | * |
| 89 | 89 | * @param mixed $id Identifier. |
| 90 | + * @param integer $lockVersion |
|
| 90 | 91 | * |
| 91 | 92 | * @throws MappingException |
| 92 | 93 | * @throws LockException |
@@ -575,6 +575,7 @@ discard block |
||
| 575 | 575 | /** |
| 576 | 576 | * INTERNAL: |
| 577 | 577 | * Sets the mapped identifier field of this class. |
| 578 | + * @param string|null $identifier |
|
| 578 | 579 | */ |
| 579 | 580 | public function setIdentifier(?string $identifier) : void |
| 580 | 581 | { |
@@ -645,6 +646,7 @@ discard block |
||
| 645 | 646 | * |
| 646 | 647 | * @throws InvalidArgumentException If document class is not this class or |
| 647 | 648 | * a Proxy of this class. |
| 649 | + * @param \Doctrine\ODM\MongoDB\Event\PreLoadEventArgs[] $arguments |
|
| 648 | 650 | */ |
| 649 | 651 | public function invokeLifecycleCallbacks(string $event, object $document, ?array $arguments = null) : void |
| 650 | 652 | { |
@@ -1296,6 +1298,7 @@ discard block |
||
| 1296 | 1298 | * {@inheritDoc} |
| 1297 | 1299 | * |
| 1298 | 1300 | * Checks whether the class has a mapped association (embed or reference) with the given field name. |
| 1301 | + * @param string $fieldName |
|
| 1299 | 1302 | */ |
| 1300 | 1303 | public function hasAssociation($fieldName) : bool |
| 1301 | 1304 | { |
@@ -1659,6 +1662,7 @@ discard block |
||
| 1659 | 1662 | /** |
| 1660 | 1663 | * Sets the name of the field that is to be used for versioning if this class is |
| 1661 | 1664 | * versioned for optimistic locking. |
| 1665 | + * @param string|null $versionField |
|
| 1662 | 1666 | */ |
| 1663 | 1667 | public function setVersionField(?string $versionField) : void |
| 1664 | 1668 | { |
@@ -1955,7 +1959,7 @@ discard block |
||
| 1955 | 1959 | * - reflClass (ReflectionClass) |
| 1956 | 1960 | * - reflFields (ReflectionProperty array) |
| 1957 | 1961 | * |
| 1958 | - * @return array The names of all the fields that should be serialized. |
|
| 1962 | + * @return string[] The names of all the fields that should be serialized. |
|
| 1959 | 1963 | */ |
| 1960 | 1964 | public function __sleep() |
| 1961 | 1965 | { |