When option --dm is not specified, the bundle tries to retrieve the DocumentManager arbitrary named default_document_manager.
But this doesn't work when no such DocumentManager exist.
Assuming most of symfony installations use a configuration close to the default one on symfony documentation, it means that they have a default manager named default instead, so this breaks.
The ManagerRegistry is already capable of returning the default manager if no name is specified, let's let it handle this.
When option
--dm
is not specified, the bundle tries to retrieve theDocumentManager
arbitrary nameddefault_document_manager
.But this doesn't work when no such
DocumentManager
exist. Assuming most of symfony installations use a configuration close to the default one on symfony documentation, it means that they have a default manager nameddefault
instead, so this breaks.The
ManagerRegistry
is already capable of returning the default manager if no name is specified, let's let it handle this.This PR fixes #32