@@ -6,7 +6,7 @@ class EntityManager implements EntityManagerInterface
6
6
{
7
7
8
8
/**
9
- * @template T
9
+ * @template T of object
10
10
* @phpstan-param class-string<T> $entityName
11
11
* @phpstan-param mixed $id
12
12
* @phpstan-param integer|null $lockMode
@@ -16,30 +16,30 @@ class EntityManager implements EntityManagerInterface
16
16
public function find($entityName, $id, $lockMode = null, $lockVersion = null);
17
17
18
18
/**
19
- * @template T
19
+ * @template T of object
20
20
* @phpstan-param T $entity
21
21
* @phpstan-return T
22
22
* @deprecated 2.7 This method is being removed from the ORM and won't have any replacement
23
23
*/
24
24
public function merge($entity);
25
25
26
26
/**
27
- * @template T
27
+ * @template T of object
28
28
* @phpstan-param class-string<T> $entityName
29
29
* @phpstan-return EntityRepository<T>
30
30
*/
31
31
public function getRepository($entityName);
32
32
33
33
/**
34
- * @template T
34
+ * @template T of object
35
35
* @phpstan-param class-string<T> $entityName
36
36
* @phpstan-param mixed $id
37
37
* @phpstan-return T|null
38
38
*/
39
39
public function getReference($entityName, $id);
40
40
41
41
/**
42
- * @template T
42
+ * @template T of object
43
43
* @phpstan-param class-string<T> $entityName
44
44
* @phpstan-param mixed $identifier
45
45
*
@@ -48,7 +48,7 @@ class EntityManager implements EntityManagerInterface
48
48
public function getPartialReference($entityName, $identifier);
49
49
50
50
/**
51
- * @template T
51
+ * @template T of object
52
52
* @phpstan-param T $entity
53
53
* @phpstan-param bool $deep
54
54
* @phpstan-return T
0 commit comments