10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86eca87 commit c1b7aecCopy full SHA for c1b7aec
reference/configuration/doctrine.rst
@@ -155,7 +155,11 @@ which is the first one defined or the one configured via the
155
``default_connection`` parameter.
156
157
Each connection is also accessible via the ``doctrine.dbal.[name]_connection``
158
-service where ``[name]`` is the name of the connection.
+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
+ $connection = $this->getDoctrine()->getConnection('customer');
162
+ $result = $connection->fetchAll('select name from customer');
163
164
Doctrine ORM Configuration
165
--------------------------
0 commit comments