1
0
mirror of synced 2025-03-04 20:03:21 +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') { } else if ($xmlRoot->getName() == 'mapped-superclass') {
$metadata->isMappedSuperclass = true; $metadata->isMappedSuperclass = true;
} else { } else {
throw MappingException::classIsNotAValidEntityOrMapperSuperClass($className); throw MappingException::classIsNotAValidEntityOrMappedSuperClass($className);
} }
// Evaluate <entity...> attributes // Evaluate <entity...> attributes

View File

@ -57,7 +57,7 @@ class YamlDriver extends AbstractFileDriver
} else if ($element['type'] == 'mappedSuperclass') { } else if ($element['type'] == 'mappedSuperclass') {
$metadata->isMappedSuperclass = true; $metadata->isMappedSuperclass = true;
} else { } else {
throw MappingException::classIsNotAValidEntityOrMapperSuperClass($className); throw MappingException::classIsNotAValidEntityOrMappedSuperClass($className);
} }
// Evaluate root level properties // Evaluate root level properties