mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Doctrine Error Handling while Executing Multiple Queries #4971
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @feridmovsumov on GitHub (Jan 13, 2016).
Originally assigned to: @deeky666 on GitHub.
I have an schema sql file (with syntax error) including multiple queries for settings database
example.sql
example.php
execute method doesn't throw any exception even that my sql is incorrect. it documentation says it returns false on failure but it returns true.
How should I do exception hanling here? How can I check if my query has an error?
I asked question on StackOverflow: http://stackoverflow.com/questions/34766314/doctrine-error-handling-while-executing-multiple-queries
@deeky666 commented on GitHub (Jan 13, 2016):
Closing this as duplicate in favour of https://github.com/doctrine/dbal/issues/2299 which is the right place for the discussion.