mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Using ManagerRegistry within commands #6029
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?
Originally created by @dominikzogg on GitHub (Aug 6, 2018).
Feature Request
I would suggest to use the manager registry to get the entity manager within Commands.
For example: https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Tools/Console/Command/InfoCommand.php#L44
What do you think about that? Would make the instantiation
Summary
@Ocramius commented on GitHub (Aug 6, 2018):
I'd probably rather deprecate the manager registry, tbh...