#1112 - Yoday need you may, better IDE hinting as well needed is.
This commit is contained in:
parent
19d3552f2a
commit
bf03694e28
@ -60,10 +60,11 @@ class DefaultRepositoryFactory implements RepositoryFactory
|
||||
*/
|
||||
protected function createRepository(EntityManagerInterface $entityManager, $entityName)
|
||||
{
|
||||
/* @var $metadata \Doctrine\ORM\Mapping\ClassMetadata */
|
||||
$metadata = $entityManager->getClassMetadata($entityName);
|
||||
$repositoryClassName = $metadata->customRepositoryClassName;
|
||||
|
||||
if ($repositoryClassName === null) {
|
||||
if (null === $repositoryClassName) {
|
||||
$configuration = $entityManager->getConfiguration();
|
||||
$repositoryClassName = $configuration->getDefaultRepositoryClassName();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user