We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4a4e2a commit ea47351Copy full SHA for ea47351
Entity/TokenManager.php
@@ -90,6 +90,11 @@ public function deleteExpired()
90
*/
91
protected function getRepository(): EntityRepository
92
{
93
- return $this->em->getRepository($this->class);
+ $repository = $this->em->getRepository($this->class);
94
+ if(!($repository instanceof EntityRepository)){
95
+ throw new \RuntimeException('EntityRepository needed');
96
+ }
97
+
98
+ return $repository;
99
}
100
0 commit comments