mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #28] [CLOSED] Accept custom Message/Code for NoResultException #7613
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/28
Author: @steffkes
Created: 2/8/2011
Status: ❌ Closed
Base:
master← Head:fix📝 Commits (1)
de50f35accept custom message/code for NoResultException📊 Changes
1 file changed (+8 additions, -2 deletions)
View changed files
📝
lib/Doctrine/ORM/NoResultException.php(+8 -2)📄 Description
While overwriting EntityManager#findOneBy (to achieve same behaviour then AbstractQuery#getSingleResult) i found it useful to be able to set a custom message/code for NoResultException, which uses the current text as fallback
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.