-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Too generic DBALException when using existing PDO #3648
Comments
Erikvv
changed the title
Generic DBALException when using existing PDO
Too generic DBALException when using existing PDO
Aug 9, 2019
I just saw in previous discussions that this is no longer a scenario the maintainers want to support. |
@Erikvv could you point me the link of the discussion? I had similar problem and came across to this issue. thanks! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug Report
Summary
Instead of a specific exception like
Doctrine\DBAL\Exception\InvalidFieldNameException
orDoctrine\DBAL\Exception\UniqueConstraintViolationException
there is aDoctrine\DBAL\DBALException
when using an existing PDO instance.How to reproduce
Check out https://github.com/Erikvv/doctrine-vs-pdo/tree/unique-exception
-> use the correct branch
-> xdebug is provided for your convenience
This compares 2 databases using existing PDO vs letting Doctrine create it.
Run:
Expected:
Actual:
Notes
On develop branch reusing PDO fails entirely with a nonsensical exception
The text was updated successfully, but these errors were encountered: