Skip to content

Update dbal.rst #9322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions doctrine/dbal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ 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.

Before you start you will need `DoctrineBundle`_ which supports both Doctrine ORM and Doctrine DBAL (together or just DBAL). This will generate ``config/packages/doctrine.yaml``.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to how we do that in other articles I would write something like this:

First, install the Doctrine bundle:

.. code-block:: terminal

    composer require doctrine/doctrine-bundle


To get started, configure the ``DATABASE_URL`` environment variable in ``.env``:

Expand Down Expand Up @@ -156,3 +158,4 @@ mapping type:
.. _`Doctrine`: http://www.doctrine-project.org
.. _`DBAL Documentation`: http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/index.html
.. _`Custom Mapping Types`: http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/types.html#custom-mapping-types
.. _`DoctrineBundle`: https://symfony.com/doc/current/bundles/DoctrineBundle/index.html