From c4549c454155c85b7119b178b3d75cbfb976ac0f Mon Sep 17 00:00:00 2001 From: romanb Date: Thu, 21 Jan 2010 22:26:36 +0000 Subject: [PATCH] [2.0][DDC-260] Fixed/Corrected patch. --- lib/Doctrine/ORM/Mapping/MappingException.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/Doctrine/ORM/Mapping/MappingException.php b/lib/Doctrine/ORM/Mapping/MappingException.php index ad26970e6..ba19ee594 100644 --- a/lib/Doctrine/ORM/Mapping/MappingException.php +++ b/lib/Doctrine/ORM/Mapping/MappingException.php @@ -26,7 +26,7 @@ namespace Doctrine\ORM\Mapping; * * @since 2.0 */ -class MappingException extends \Doctrine\Common\DoctrineException +class MappingException extends \Doctrine\ORM\ORMException { public static function identifierRequired($entityName) { @@ -112,7 +112,8 @@ class MappingException extends \Doctrine\Common\DoctrineException * @param string $entity The entity's name * @param \ReflectionException $previousException */ - public static function reflectionFailure($entity, \ReflectionException $previousException) { - return new self('An error occurred in ' . $entity, $previousException); + public static function reflectionFailure($entity, \ReflectionException $previousException) + { + return new self('An error occurred in ' . $entity, 0, $previousException); } } \ No newline at end of file