Skip to content

Commit

Permalink
Readme: clarify setEntityMapping
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x authored Apr 28, 2020
1 parent 410f32d commit 34411b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ nettrine.orm.xml:

### Helpers

You can use the predefined `TEntityMapping` trait in your compiler extensions.
You can use the predefined `TEntityMapping` trait in your compiler extensions. Be careful, you have to call it in `beforeCompile` phase.

```php
use Nette\DI\CompilerExtension;
Expand All @@ -254,7 +254,7 @@ class CategoryExtension extends CompilerExtension
use TEntityMapping;
public function loadConfiguration(): void
public function beforeCompile(): void
{
$this->setEntityMappings([
'Forum' => __DIR__ . '/../Entity',
Expand Down

0 comments on commit 34411b1

Please sign in to comment.