Remove uneeded assertion

This commit is contained in:
Grégoire Paris
2021-08-11 22:14:33 +02:00
parent 01e7e45744
commit 7dfa140542

View File

@@ -893,7 +893,6 @@ class XmlDriver extends FileDriver
{
$cascades = [];
foreach ($cascadeElement->children() as $action) {
assert($action instanceof SimpleXMLElement);
// According to the JPA specifications, XML uses "cascade-persist"
// instead of "persist". Here, both variations
// are supported because both YAML and Annotation use "persist"