Skip to content

Commit

Permalink
Merge pull request #559 from nicolas-grekas/lazy
Browse files Browse the repository at this point in the history
Set doctrine.orm.entity_manager.abstract as lazy
  • Loading branch information
kimhemsoe authored Aug 10, 2016
2 parents 87f0554 + ebb6b6c commit dd40b0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/config/orm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@

<service id="doctrine.orm.configuration" class="%doctrine.orm.configuration.class%" abstract="true" public="false" />

<service id="doctrine.orm.entity_manager.abstract" class="%doctrine.orm.entity_manager.class%" abstract="true" />
<service id="doctrine.orm.entity_manager.abstract" class="%doctrine.orm.entity_manager.class%" abstract="true" lazy="true" />

<!-- The configurator cannot be a private service -->
<service id="doctrine.orm.manager_configurator.abstract" class="%doctrine.orm.manager_configurator.class%" abstract="true">
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"php": ">=5.3.2",
"symfony/framework-bundle": "~2.3|~3.0",
"symfony/console": "~2.3|~3.0",
"symfony/dependency-injection": "~2.3|~3.0",
"doctrine/dbal": "~2.3",
"jdorn/sql-formatter": "~1.1",
"symfony/doctrine-bridge": "~2.2|~3.0",
Expand Down

0 comments on commit dd40b0a

Please sign in to comment.