mirror of
https://github.com/doctrine/orm.git
synced 2026-04-29 09:23:20 +02:00
Doctrine console commands em default should be null #6701
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 @simPod on GitHub (Apr 19, 2021).
Doctrine console commands now have a default value as
defaultinstead ofnull.When
emis set tonull, theAbstractManagerRegistry's functionality kicks in and uses real default EntityManager ($this->defaultManager) https://github.com/doctrine/persistence/blob/2.2.x/lib/Doctrine/Persistence/AbstractManagerRegistry.php#L143-L146Now's it looking for EM with name
defaultwhich does not guarantee it's the default one.https://github.com/doctrine/orm/blob/22413453daa872e121514bab1fe4c5fa982623ea/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/UpdateCommand.php#L50
@beberlei commented on GitHub (May 1, 2021):
Fixed by #8646