Skip to content

Commit 2aa9ff7

Browse files
Update doctrine.rst
* Added info about the slash in a "host" name like `/data/sockets/databases/postgresql` (took me hours to figure it out!) * Added info that urlencoded parameters in conjunction with ``resolve:`` leads to an error message.
1 parent 3a523e1 commit 2aa9ff7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

doctrine.rst

+5-3
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,12 @@ The database connection information is stored as an environment variable called
4949
5050
.. caution::
5151

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

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

0 commit comments

Comments
 (0)