Skip to content

How to use existing PDO instance in doctrine/dbal 3.3.* #9464

Discussion options

You must be logged in to vote

You cannot. In order to share the same PDO instance between DBAL and other components, initialize the connection in DBAL and access it using Connection::getNativeConnection().

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@derrabus
Comment options

@ramsey
Comment options

@beberlei
Comment options

@jakublabno
Comment options

@ramsey
Comment options

Answer selected by jakublabno
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants