#1112 - Yoday need you may, better IDE hinting as well needed is.
This commit is contained in:
parent
19d3552f2a
commit
bf03694e28
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue