[2.0] DDC-457 - Fix invalid reference to MappingException in Xml and Yml Drivers
This commit is contained in:
parent
c6f0699dbf
commit
6b86c97f0a
@ -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
|
|||||||
} 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user