File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -110,14 +110,18 @@ public function getRepositoryClass(string $className): string
110
110
if ($ metadata instanceof $ ormMetadataClass ) {
111
111
/** @var \Doctrine\ORM\Mapping\ClassMetadata $ormMetadata */
112
112
$ ormMetadata = $ metadata ;
113
- return $ ormMetadata ->customRepositoryClassName ?? $ this ->getResolvedRepositoryClass ();
113
+ return $ ormMetadata ->customRepositoryClassName
114
+ ?? $ this ->repositoryClass
115
+ ?? 'Doctrine\ORM\EntityRepository ' ;
114
116
}
115
117
116
118
$ odmMetadataClass = 'Doctrine\ODM\MongoDB\Mapping\ClassMetadata ' ;
117
119
if ($ metadata instanceof $ odmMetadataClass ) {
118
120
/** @var \Doctrine\ODM\MongoDB\Mapping\ClassMetadata $odmMetadata */
119
121
$ odmMetadata = $ metadata ;
120
- return $ odmMetadata ->customRepositoryClassName ?? $ this ->getResolvedRepositoryClass ();
122
+ return $ odmMetadata ->customRepositoryClassName
123
+ ?? $ this ->repositoryClass
124
+ ?? 'Doctrine\ODM\MongoDB\Repository\DocumentRepository ' ;
121
125
}
122
126
123
127
return $ this ->getResolvedRepositoryClass ();
You can’t perform that action at this time.
0 commit comments