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 d8966d0 commit e4e52b1Copy full SHA for e4e52b1
guides/doctrine/dbal/configuration.rst
@@ -52,13 +52,14 @@ them under the key named ``connections``:
52
host: localhost
53
54
If you have defined multiple connections you can use the
55
-``getDatabaseConnection()`` as well but you must pass it an argument with the
+``$this->get('doctrine.dbal.[connectionname]_connection)``
56
+as well but you must pass it an argument with the
57
connection name that you want get::
58
59
class UserController extends Controller
60
{
61
public function indexAction()
62
- $conn = $this->container->getDatabaseConnection('customer');
63
+ $conn = $this->get('doctrine.dbal.customer_connection');
64
}
65
0 commit comments