Symfony Database Connection (DBAL Module)
Last updated
Last updated
We can use Ecotone's Symfony integration to reuse Connections that are already defined in your Symfony Application.
Suppose we already defined connection in our "doctrine.yaml" file:
Then to use it as our Default Connection, we can use Service Context config:
It's all we need to configure. Ecotone will now know to use some_connection as default.
Suppose we already defined connection in our "doctrine.yaml" file:
Then to use it as our Default Connection, we can use Service Context config:
It's all we need to configure. Ecotone will now know to use some_orm_connection as default.
If we don't have existing connection defined, we can make use of DSN directly
Configuring Dbal Module with Manager Registry allows to make your Entities work as a .