Commit c4549c45 authored by romanb's avatar romanb

[2.0][DDC-260] Fixed/Corrected patch.

parent 572f7281
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment