Skip to content

Commit

Permalink
Merge branch 'master' into DoctrineHydrator
Browse files Browse the repository at this point in the history
  • Loading branch information
Al3x Zamponi authored Jan 21, 2021
2 parents b657259 + 521b7d7 commit 2a0db5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ All notable changes to this project will be documented in this file, in reverse

### Fixed

- Nothing.
- Xml directory path.


## 3.0.0 - 2020-11-19

Expand Down
5 changes: 4 additions & 1 deletion src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ public function onBootstrap($e): void
// Add the default entity driver only if specified in configuration
if ($options->getEnableDefaultEntities()) {
$chain = $sm->get('doctrine.driver.orm_default');
$chain->addDriver(new XmlDriver(__DIR__ . '/config/xml/lmcuserdoctrineorm'), 'LmcUserDoctrineORM\Entity');
$chain->addDriver(
new XmlDriver(__DIR__ . '/../config/xml/lmcuserdoctrineorm'),
'LmcUserDoctrineORM\Entity'
);
}
}

Expand Down

0 comments on commit 2a0db5d

Please sign in to comment.