This commit is contained in:
Yuri Kuznetsov
2022-02-17 17:14:31 +02:00
parent 41139f52c8
commit 5aa154459d
+1 -5
View File
@@ -388,7 +388,7 @@ class EntityManager
/**
* Get a repository for a specific entity type.
*
* @return RDBRepository<Entity>
* @return Repository<Entity>
*/
public function getRepository(string $entityType): Repository
{
@@ -402,10 +402,6 @@ class EntityManager
$repository = $this->repositoryHash[$entityType];
if (!$repository instanceof RDBRepository) {
throw new RuntimeException("Repository '{$entityType}' is not RDB.");
}
return $repository;
}