mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #1082] [MERGED] added more informative error messages when invalid parameter count #9131
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?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/1082
Author: @rodnaph
Created: 7/15/2014
Status: ✅ Merged
Merged: 7/15/2014
Merged by: @guilhermeblanco
Base:
master← Head:invalid-parameter-count📝 Commits (1)
ad10a18added more informative error messages when invalid parameter count📊 Changes
3 files changed (+36 additions, -6 deletions)
View changed files
📝
lib/Doctrine/ORM/Query.php(+6 -2)📝
lib/Doctrine/ORM/Query/QueryException.php(+16 -2)📝
tests/Doctrine/Tests/ORM/Functional/QueryTest.php(+14 -2)📄 Description
When an invalid number of parameters is bound current it's not indicated if there are too few or too many (which could help a lot in trying to debug the problem). This change alters the exception message to be more informative as to whether too few or too many parameters have been bound in the query.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.