@@ -41,25 +41,35 @@ public function __construct(
41
41
$ this ->repository = $ this ->resolveRepository ();
42
42
}
43
43
44
+ /** @psalm-suppress MethodSignatureMismatch This proxy is used only in combination with newer parent class */
44
45
public function createQueryBuilder (string $ alias , ?string $ indexBy = null ): QueryBuilder
45
46
{
46
47
return ($ this ->repository ??= $ this ->resolveRepository ())
47
48
->createQueryBuilder ($ alias , $ indexBy );
48
49
}
49
50
51
+ /** @psalm-suppress MethodSignatureMismatch This proxy is used only in combination with newer parent class */
50
52
public function createResultSetMappingBuilder (string $ alias ): ResultSetMappingBuilder
51
53
{
52
54
return ($ this ->repository ??= $ this ->resolveRepository ())
53
55
->createResultSetMappingBuilder ($ alias );
54
56
}
55
57
58
+ /** @psalm-suppress MethodSignatureMismatch This proxy is used only in combination with newer parent class */
56
59
public function find (mixed $ id , LockMode |int |null $ lockMode = null , int |null $ lockVersion = null ): object |null
57
60
{
61
+ /** @psalm-suppress InvalidReturnStatement This proxy is used only in combination with newer parent class */
58
62
return ($ this ->repository ??= $ this ->resolveRepository ())
59
63
->find ($ id , $ lockMode , $ lockVersion );
60
64
}
61
65
62
- /** {@inheritDoc} */
66
+ /**
67
+ * {@inheritDoc}
68
+ *
69
+ * @psalm-suppress InvalidReturnStatement This proxy is used only in combination with newer parent class
70
+ * @psalm-suppress MethodSignatureMismatch This proxy is used only in combination with newer parent class
71
+ * @psalm-suppress InvalidReturnType This proxy is used only in combination with newer parent class
72
+ */
63
73
public function findBy (array $ criteria , ?array $ orderBy = null , ?int $ limit = null , ?int $ offset = null ): array
64
74
{
65
75
return ($ this ->repository ??= $ this ->resolveRepository ())
@@ -69,6 +79,7 @@ public function findBy(array $criteria, ?array $orderBy = null, ?int $limit = nu
69
79
/** {@inheritDoc} */
70
80
public function findOneBy (array $ criteria , ?array $ orderBy = null ): object |null
71
81
{
82
+ /** @psalm-suppress InvalidReturnStatement This proxy is used only in combination with newer parent class */
72
83
return ($ this ->repository ??= $ this ->resolveRepository ())
73
84
->findOneBy ($ criteria , $ orderBy );
74
85
}
@@ -79,7 +90,11 @@ public function count(array $criteria = []): int
79
90
return ($ this ->repository ??= $ this ->resolveRepository ())->count ($ criteria );
80
91
}
81
92
82
- /** {@inheritDoc} */
93
+ /**
94
+ * {@inheritDoc}
95
+ *
96
+ * @psalm-suppress MethodSignatureMismatch This proxy is used only in combination with newer parent class
97
+ */
83
98
public function __call (string $ method , array $ arguments ): mixed
84
99
{
85
100
return ($ this ->repository ??= $ this ->resolveRepository ())->$ method (...$ arguments );
@@ -95,8 +110,10 @@ protected function getEntityManager(): EntityManagerInterface
95
110
return ($ this ->repository ??= $ this ->resolveRepository ())->getEntityManager ();
96
111
}
97
112
113
+ /** @psalm-suppress InvalidReturnType This proxy is used only in combination with newer parent class */
98
114
protected function getClassMetadata (): ClassMetadata
99
115
{
116
+ /** @psalm-suppress InvalidReturnStatement This proxy is used only in combination with newer parent class */
100
117
return ($ this ->repository ??= $ this ->resolveRepository ())->getClassMetadata ();
101
118
}
102
119
0 commit comments