Skip to content

Commit

Permalink
Restrict EntityManagerInterface::getRepository (doctrine#8417)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet authored Feb 12, 2021
1 parent d00dbf7 commit 172a8d9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/Doctrine/ORM/EntityManagerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@
*/
interface EntityManagerInterface extends ObjectManager
{
/**
* {@inheritdoc}
*
* @template T
* @psalm-param class-string<T> $className
* @psalm-return EntityRepository<T>
*/
public function getRepository($className);

/**
* Returns the cache API for managing the second level cache regions or NULL if the cache is not enabled.
*
Expand Down

0 comments on commit 172a8d9

Please sign in to comment.