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 a95163eCopy full SHA for a95163e
reference/configuration/doctrine.rst
@@ -155,7 +155,12 @@ 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
+.. code-block:: php
162
+ $conex = $this->getDoctrine()->getConnection('customer');
163
+ $res = $conex->fetchAll('select * from table');
164
165
Doctrine ORM Configuration
166
--------------------------
0 commit comments