I know this message is old but I'll reply anyways because that will help people in the future who stumble upon this topic, like me.
>From the DBAL\Connection, just use the getWrappedConnection() method. It returns a Doctrine\DBAL\Driver\PDOConnection object, which extends the standard PHP PDO class, so you can use it as such. Le vendredi 26 octobre 2012 14:41:50 UTC+2, Chris Ramakers a écrit : > > I'm trying to debug an issue that thows a PDOException at us, however I > would like to get a hold of the PDO instance used by DBAL. > > I've got access to my DBAL\Connection but can't figure out how to get > access to the PDO connection inside. Is this possible? > -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/groups/opt_out.
