How to use existing PDO instance in doctrine/dbal 3.3.* #9464
-
How to use existing instance without creating new connection to database? Before I used Using |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
For now I've used own driver, but it should not be a solution…I think |
Beta Was this translation helpful? Give feedback.
-
You cannot. In order to share the same |
Beta Was this translation helpful? Give feedback.
You cannot. In order to share the same
PDO
instance between DBAL and other components, initialize the connection in DBAL and access it usingConnection::getNativeConnection()
.