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