Bin / console without a working database
1 answer
As suggested by Cerad in his comment, you must remove the DoctrineBundle from AppKernel.php.
If you need this package in other contexts for your application (for example, access from the browser), you can define a custom environment (for example console
) and only enable the package in other environments (prod, dev, test by default). See https://symfony.com/doc/current/configuration/environments.html
+1
source to share