type fix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user