diff --git a/doctrine/dbal.rst b/doctrine/dbal.rst index ba0c8327657..ab69f3bb40f 100644 --- a/doctrine/dbal.rst +++ b/doctrine/dbal.rst @@ -21,11 +21,11 @@ makes it easy to execute queries and perform other database actions. Read the official Doctrine `DBAL Documentation`_ to learn all the details and capabilities of Doctrine's DBAL library. -First, install the Doctrine bundle: +First, install the Doctrine ORM pack: .. code-block:: terminal - $ composer require doctrine/doctrine-bundle + $ composer require symfony/orm-pack Then configure the ``DATABASE_URL`` environment variable in ``.env``: @@ -36,9 +36,9 @@ Then configure the ``DATABASE_URL`` environment variable in ``.env``: # customize this line! DATABASE_URL="mysql://db_user:db_password@127.0.0.1:3306/db_name" -Further things can be configured in ``config/packages/doctrine.yaml``. For the full -DBAL configuration options, or to learn how to configure multiple connections, -see :ref:`reference-dbal-configuration`. +Further things can be configured in ``config/packages/doctrine.yaml`` - see +:ref:`reference-dbal-configuration`. Remove the ``orm`` key in that file +if you *don't* want to use the Doctrine ORM. You can then access the Doctrine DBAL connection by autowiring the ``Connection`` object::