mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #11476] Added a new manager to manage multiple entity manager instances #13052
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/11476
State: closed
Merged: No
Hi,
I encountered a problem with the console, I would have liked to be able to pass several instances of the entity manager.
Currently, only one instance can be passed using
SingleManagerProviderclass.Here is a new implementation of the
MultipleManagerProviderclass.It allows you to obtain several instances of the
Entity managerwithin a console application.Here is how it could be instantiated:
It's now possible to execute the binary with the argument
--em=em1or--em=em2