Skip to content

Commit

Permalink
Added support for Lean Mapper 4.0
Browse files Browse the repository at this point in the history
Option 'defaultEntityNamespace' is set to 'Model\Entity' because
Behavior of DefaultMapper changed in Lean Mapper 4.0.
  • Loading branch information
janpecha committed Feb 15, 2021
1 parent 7caaf38 commit ebc8f42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"require": {
"php": ">=5.6.0",
"nette/di": "^2.4",
"inlm/mappers": "^2.1",
"inlm/mappers": "^2.1 || ^3.0",
"czproject/assert": "^1.3"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/LeanMapperExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class LeanMapperExtension extends \Nette\DI\CompilerExtension
'connection' => \LeanMapper\Connection::class,

// mapper
'defaultEntityNamespace' => NULL,
'defaultEntityNamespace' => 'Model\\Entity',

// connection
'host' => 'localhost',
Expand Down

0 comments on commit ebc8f42

Please sign in to comment.