|
5 | 5 | namespace Doctrine\ORM\Persisters\Entity; |
6 | 6 |
|
7 | 7 | use Doctrine\Common\Collections\Criteria; |
| 8 | +use Doctrine\DBAL\LockMode; |
8 | 9 | use Doctrine\ORM\Mapping\ClassMetadata; |
9 | 10 | use Doctrine\ORM\Mapping\MappingException; |
10 | 11 | use Doctrine\ORM\PersistentCollection; |
@@ -54,6 +55,7 @@ public function getInsertSQL(); |
54 | 55 | * @param int|null $limit |
55 | 56 | * @param int|null $offset |
56 | 57 | * @param mixed[]|null $orderBy |
| 58 | + * @psalm-param LockMode::*|null $lockMode |
57 | 59 | * |
58 | 60 | * @return string |
59 | 61 | */ |
@@ -185,6 +187,7 @@ public function getOwningTable($fieldName); |
185 | 187 | * @psalm-param array<string, mixed> $criteria |
186 | 188 | * @psalm-param array<string, mixed>|null $assoc |
187 | 189 | * @psalm-param array<string, mixed> $hints |
| 190 | + * @psalm-param LockMode::*|null $lockMode |
188 | 191 | * @psalm-param array<string, string>|null $orderBy |
189 | 192 | * |
190 | 193 | * @return object|null The loaded and managed entity instance or NULL if the entity can not be found. |
@@ -239,6 +242,7 @@ public function loadOneToOneEntity(array $assoc, $sourceEntity, array $identifie |
239 | 242 | * @psalm-param array<string, mixed> $id The identifier of the entity as an |
240 | 243 | * associative array from column or |
241 | 244 | * field names to values. |
| 245 | + * @psalm-param LockMode::*|null $lockMode |
242 | 246 | * |
243 | 247 | * @return void |
244 | 248 | */ |
@@ -300,6 +304,7 @@ public function loadOneToManyCollection(array $assoc, $sourceEntity, PersistentC |
300 | 304 | * |
301 | 305 | * @param int $lockMode One of the Doctrine\DBAL\LockMode::* constants. |
302 | 306 | * @psalm-param array<string, mixed> $criteria |
| 307 | + * @psalm-param LockMode::* $lockMode |
303 | 308 | * |
304 | 309 | * @return void |
305 | 310 | */ |
|
0 commit comments