Skip to content

Added charset "query string" #10410

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

Merged
merged 5 commits into from
Oct 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ This is referenced inside ``config/packages/doctrine.yaml``:
dbal:
url: '%env(DATABASE_URL)%'

# the resolve: prefix will resolve parameters *inside* the env variable
# The `resolve:` prefix replaces container params by their values inside the env variable:
# url: '%env(resolve:DATABASE_URL)%'

For more details about environment variables, see :ref:`config-env-vars`.
Expand Down
8 changes: 5 additions & 3 deletions doctrine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@ The database connection information is stored as an environment variable called

.. caution::

If the username, password or database name contain any character considered
special in a URI (such as ``!``, ``@``, ``$``, ``#``), you must encode them.
If the username, password, host or database name contain any character considered
special in a URI (such as ``!``, ``@``, ``$``, ``#``, ``/``), you must encode them.
See `RFC 3986`_ for the full list of reserved characters or use the
:phpfunction:`urlencode` function to encode them.
:phpfunction:`urlencode` function to encode them. In this case you need to remove
the ``resolve:`` prefix in ``config/packages/doctrine.yaml`` to avoid errors:
``url: '%env(resolve:DATABASE_URL)%'``

Now that your connection parameters are setup, Doctrine can create the ``db_name``
database for you:
Expand Down