Skip to content

Commit 04104d4

Browse files
committed
minor #10127 Recommend to install ORM pack instead of Doctrine bundle (javiereguiluz, weaverryan)
This PR was merged into the 4.1 branch. Discussion ---------- Recommend to install ORM pack instead of Doctrine bundle Fixes symfony/recipes#218 Commits ------- ff3c3d0 typo bb8ec26 Updating language to remove ORM 88a4afd Recommend to install ORM pack instead of Doctrine bundle
2 parents 10a24e4 + ff3c3d0 commit 04104d4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doctrine/dbal.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ makes it easy to execute queries and perform other database actions.
2121
Read the official Doctrine `DBAL Documentation`_ to learn all the details
2222
and capabilities of Doctrine's DBAL library.
2323

24-
First, install the Doctrine bundle:
24+
First, install the Doctrine ORM pack:
2525

2626
.. code-block:: terminal
2727
28-
$ composer require doctrine/doctrine-bundle
28+
$ composer require symfony/orm-pack
2929
3030
Then configure the ``DATABASE_URL`` environment variable in ``.env``:
3131

@@ -36,9 +36,9 @@ Then configure the ``DATABASE_URL`` environment variable in ``.env``:
3636
# customize this line!
3737
DATABASE_URL="mysql://db_user:db_password@127.0.0.1:3306/db_name"
3838
39-
Further things can be configured in ``config/packages/doctrine.yaml``. For the full
40-
DBAL configuration options, or to learn how to configure multiple connections,
41-
see :ref:`reference-dbal-configuration`.
39+
Further things can be configured in ``config/packages/doctrine.yaml`` - see
40+
:ref:`reference-dbal-configuration`. Remove the ``orm`` key in that file
41+
if you *don't* want to use the Doctrine ORM.
4242

4343
You can then access the Doctrine DBAL connection by autowiring the ``Connection``
4444
object::

0 commit comments

Comments
 (0)