8000 Update doctrine.rst · symfony/symfony-docs@a9f252b · GitHub
[go: up one dir, main page]

Skip to content

Commit a9f252b

Browse files
authored
Update doctrine.rst
1 parent f4a0ca8 commit a9f252b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

reference/configuration/doctrine.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,7 @@ which is the first one defined or the one configured via the
156156

157157
Each connection is also accessible via the ``doctrine.dbal.[name]_connection``
158158
service where ``[name]`` is the name of the connection. Or directly in the controller with
159-
getConnection method and the name of the connection.
160-
161-
.. code-block:: php
159+
getConnection method and the name of the connection::
162160

163161
$connection = $this->getDoctrine()->getConnection('customer');
164162
$result = $connection->fetchAll('select name from customer');

0 commit comments

Comments
 (0)
0