From 88a4afdf5fbb3e2910d9d944ac3f69bacdccc783 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Fri, 27 Jul 2018 17:47:49 +0200 Subject: [PATCH 1/3] Recommend to install ORM pack instead of Doctrine bundle --- doctrine/dbal.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doctrine/dbal.rst b/doctrine/dbal.rst index ba0c8327657..ac1b3e394a5 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``: From bb8ec2655f91447c2ed90951154a5fc871cb932b Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Fri, 10 Aug 2018 18:53:03 -0400 Subject: [PATCH 2/3] Updating language to remove ORM --- doctrine/dbal.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doctrine/dbal.rst b/doctrine/dbal.rst index ac1b3e394a5..c13acd34b1d 100644 --- a/doctrine/dbal.rst +++ b/doctrine/dbal.rst @@ -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`. You 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:: From ff3c3d0d68a496252f06159f21913c0d5d0e595d Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Fri, 10 Aug 2018 18:53:32 -0400 Subject: [PATCH 3/3] typo --- doctrine/dbal.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doctrine/dbal.rst b/doctrine/dbal.rst index c13acd34b1d..ab69f3bb40f 100644 --- a/doctrine/dbal.rst +++ b/doctrine/dbal.rst @@ -37,7 +37,7 @@ Then configure the ``DATABASE_URL`` environment variable in ``.env``: DATABASE_URL="mysql://db_user:db_password@127.0.0.1:3306/db_name" Further things can be configured in ``config/packages/doctrine.yaml`` - see -:ref:`reference-dbal-configuration`. You remove the ``orm`` key in that file +: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``