1
0
Fork 0
mirror of synced 2025-04-01 12:26:11 +03:00

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

This commit is contained in:
romanb 2010-01-21 22:26:36 +00:00
parent 572f728153
commit c4549c4541

View file

@ -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);
}
}