Skip to content

Commit

Permalink
Merge pull request #3 from LM-Commons/WrongXmlDir
Browse files Browse the repository at this point in the history
Fixed wrong xml dir.
  • Loading branch information
Al3x Zamponi authored Jan 21, 2021
2 parents fb3568c + 84a262a commit 521b7d7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,25 @@

All notable changes to this project will be documented in this file, in reverse chronological order by release.

## 3.0.1 - 2021-01-21

### Added

- Nothing.

### Deprecated

- Nothing.

### Removed

- Nothing.

### Fixed

- Xml directory path.


## 3.0.0 - 2020-11-19

### Added
Expand Down
5 changes: 4 additions & 1 deletion src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,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 521b7d7

Please sign in to comment.