Skip to content

Commit af4cb66

Browse files
committed
Updated README
1 parent 84dd833 commit af4cb66

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ This extension provides following features:
1212
* Provides correct return type for `Doctrine\ORM\EntityManager::find`, `getReference` and `getPartialReference` when `Foo::class` entity class name is provided as the first argument
1313
* Adds missing `matching` method on `Doctrine\Common\Collections\Collection`
1414

15+
This extension does not yet support custom `repositoryClass` specified for each entity class. However, if your repositories have a common base class, you can configure it in your `phpstan.neon` and PHPStan will see additional methods you define in it:
16+
17+
```
18+
parameters:
19+
doctrine:
20+
repositoryClass: MyApp\Doctrine\BetterEntityRepository
21+
```
22+
1523
## Usage
1624

1725
To use this extension, require it in [Composer](https://getcomposer.org/):

0 commit comments

Comments
 (0)