Skip to content

Commit 3b66e27

Browse files
committed
Fixed compatibility with static reflection
1 parent 69b6af6 commit 3b66e27

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

stubs/DocumentRepository.stub

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
namespace Doctrine\ODM\MongoDB\Repository;
44

55
use Doctrine\Common\Persistence\ObjectRepository;
6+
use Doctrine\Persistence\ObjectRepository as PersistenceObjectRepository;
67

78
/**
89
* @template TDocumentClass
910
* @implements ObjectRepository<TDocumentClass>
11+
* @implements PersistenceObjectRepository<TDocumentClass>
1012
*/
11-
class DocumentRepository implements ObjectRepository
13+
class DocumentRepository implements ObjectRepository, PersistenceObjectRepository
1214
{
1315

1416
/**

stubs/EntityRepository.stub

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
namespace Doctrine\ORM;
44

55
use Doctrine\Common\Persistence\ObjectRepository;
6+
use Doctrine\Persistence\ObjectRepository as PersistenceObjectRepository;
67

78
/**
89
* @template TEntityClass
910
* @implements ObjectRepository<TEntityClass>
11+
* @implements PersistenceObjectRepository<TEntityClass>
1012
*/
11-
class EntityRepository implements ObjectRepository
13+
class EntityRepository implements ObjectRepository, PersistenceObjectRepository
1214
{
1315

1416
/**

0 commit comments

Comments
 (0)