Jira issue originally created by user @beberlei:
AbstractQuery::getSingleResult() should throw exception if no row is found.
This is also what JPA does, it throws a NoResultException, so we should add a Doctrine\ORM\NoResultException for this.
Comment created by @beberlei:
This probably also affects EntityManager::find($class, $identifier) and EntityRepository::find($class, $identifier)
Comment created by romanb:
As was discussed, find() should rather return the entity or null, if it was not found, since find() implies that you're not sure it is there.
Contrary to that, getSingleResult() is a strong assumption about the fact that there is a result and thus no result is usually unexpected behavior. Hence in this case an exception might be the better fit.
Issue was closed with resolution "Fixed"