Skip to content

How to access PDO? #1867

Answered by mringler
murraycollingwood asked this question in Q&A
Apr 13, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Oh, I don't think this is possible at the moment.
In your case you would want Propel to create another connection (which it is not using itself) and then hand it to you. While I see how this would be convenient, it is currently not implemented from what I see. I also don't see a way how to access the connection information (host, user, password, etc).
So I guess easiest approach is to create a new connection yourself, from connection information you get from outside Propel.

If you feel like using Propel to create PDO connections is a missing feature and want to create a PR, I think it would be interesting.

Best,
Moritz

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@murraycollingwood
Comment options

@mringler
Comment options

Answer selected by murraycollingwood
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants