1
0
mirror of synced 2024-12-13 22:56:04 +03:00

[2.0] DDC-457 - Fix invalid reference to MappingException in Xml and Yml Drivers

This commit is contained in:
beberlei 2010-03-26 18:29:20 +00:00
parent c6f0699dbf
commit 6b86c97f0a
2 changed files with 2 additions and 2 deletions

View File

@ -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 <entity...> attributes

View File

@ -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