mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
query parameters mapping : make better error message #4973
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 @kcassam on GitHub (Jan 13, 2016).
196ea2d0c5/lib/Doctrine/ORM/Query.php (L306-L313)Observed : Today, error messages states too many parameters or to few parameters, we only have a count, but it can be difficult to track what's wrong
Expected : It would be developer friendly to list the parameters and the mappings
@svencan commented on GitHub (Feb 10, 2017):
I would like to look into this, although I'm new to FOSS contribution.
Do we want a complete list of parameters and mappings in the exception, or first-failed-mapping indication so that developers can fix wrong mappings one by one?
@Ocramius commented on GitHub (Feb 10, 2017):
@svencan I'd start from suggesting an example error message that is more friendly (just write it here as a start).
Then we just add it to a test and continue from there 👍