From 60d00a63b39981a396c1c7e3d2963b81d1082f78 Mon Sep 17 00:00:00 2001 From: beberlei Date: Wed, 27 Jan 2010 18:00:10 +0000 Subject: [PATCH] [2.0] Add Message to NoResultException --- lib/Doctrine/ORM/NoResultException.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/NoResultException.php b/lib/Doctrine/ORM/NoResultException.php index e948a96c7..1312ea1e3 100644 --- a/lib/Doctrine/ORM/NoResultException.php +++ b/lib/Doctrine/ORM/NoResultException.php @@ -8,4 +8,10 @@ namespace Doctrine\ORM; * @author robo * @since 2.0 */ -class NoResultException extends ORMException {} \ No newline at end of file +class NoResultException extends ORMException +{ + public function __construct() + { + parent::__construct('No result was found for query although at least one row was expected.'); + } +} \ No newline at end of file