Commit 6b86c97f authored by beberlei's avatar beberlei

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

parent c6f0699d
...@@ -57,7 +57,7 @@ class XmlDriver extends AbstractFileDriver ...@@ -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
......
...@@ -57,7 +57,7 @@ class YamlDriver extends AbstractFileDriver ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment