From 6b86c97f0a11e17f65e6e02970c76e23d87f2b45 Mon Sep 17 00:00:00 2001 From: beberlei Date: Fri, 26 Mar 2010 18:29:20 +0000 Subject: [PATCH] [2.0] DDC-457 - Fix invalid reference to MappingException in Xml and Yml Drivers --- lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php | 2 +- lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php b/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php index 5232791a0..05099e26c 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php @@ -57,7 +57,7 @@ class XmlDriver extends AbstractFileDriver } else if ($xmlRoot->getName() == 'mapped-superclass') { $metadata->isMappedSuperclass = true; } else { - throw MappingException::classIsNotAValidEntityOrMapperSuperClass($className); + throw MappingException::classIsNotAValidEntityOrMappedSuperClass($className); } // Evaluate attributes diff --git a/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php b/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php index bf04f93d1..e342541f9 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php @@ -57,7 +57,7 @@ class YamlDriver extends AbstractFileDriver } else if ($element['type'] == 'mappedSuperclass') { $metadata->isMappedSuperclass = true; } else { - throw MappingException::classIsNotAValidEntityOrMapperSuperClass($className); + throw MappingException::classIsNotAValidEntityOrMappedSuperClass($className); } // Evaluate root level properties