Using ManagerRegistry within commands #6029

Closed
opened 2026-01-22 15:25:03 +01:00 by admin · 1 comment
Owner

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

Q A
New Feature yes
RFC no
BC Break yes/no (depends on implementation)

Summary

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 | Q | A |------------ | ------ | New Feature | yes | RFC | no | BC Break | yes/no (depends on implementation) #### Summary <!-- Provide a summary of the feature you would like to see implemented. -->
admin closed this issue 2026-01-22 15:25:03 +01:00
Author
Owner

@Ocramius commented on GitHub (Aug 6, 2018):

I'd probably rather deprecate the manager registry, tbh...

@Ocramius commented on GitHub (Aug 6, 2018): I'd probably rather deprecate the manager registry, tbh...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#6029