1
0
mirror of synced 2025-03-03 11:23:21 +03:00

#1112 - Yoday need you may, better IDE hinting as well needed is.

This commit is contained in:
Marco Pivetta 2014-08-18 15:16:45 +02:00
parent 19d3552f2a
commit bf03694e28

View File

@ -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();
}