diff --git a/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php b/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php index 47eb07c45..ae488ce63 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php @@ -435,7 +435,7 @@ class YamlDriver extends AbstractFileDriver } if (isset($manyToManyElement['orphanRemoval'])) { - $mapping['orphanRemoval'] = (bool)$manyToManyElement['orphan-removal']; + $mapping['orphanRemoval'] = (bool)$manyToManyElement['orphanRemoval']; } if (isset($manyToManyElement['orderBy'])) {