Merge branch 'DDC-1035'
This commit is contained in:
commit
b13c29944b
@ -276,6 +276,10 @@ class YamlDriver extends AbstractFileDriver
|
|||||||
$mapping['cascade'] = $oneToOneElement['cascade'];
|
$mapping['cascade'] = $oneToOneElement['cascade'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($oneToOneElement['orphanRemoval'])) {
|
||||||
|
$mapping['orphanRemoval'] = (bool)$oneToOneElement['orphanRemoval'];
|
||||||
|
}
|
||||||
|
|
||||||
$metadata->mapOneToOne($mapping);
|
$metadata->mapOneToOne($mapping);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -297,6 +301,10 @@ class YamlDriver extends AbstractFileDriver
|
|||||||
$mapping['cascade'] = $oneToManyElement['cascade'];
|
$mapping['cascade'] = $oneToManyElement['cascade'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($oneToManyElement['orphanRemoval'])) {
|
||||||
|
$mapping['orphanRemoval'] = (bool)$oneToManyElement['orphanRemoval'];
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($oneToManyElement['orderBy'])) {
|
if (isset($oneToManyElement['orderBy'])) {
|
||||||
$mapping['orderBy'] = $oneToManyElement['orderBy'];
|
$mapping['orderBy'] = $oneToManyElement['orderBy'];
|
||||||
}
|
}
|
||||||
@ -349,6 +357,10 @@ class YamlDriver extends AbstractFileDriver
|
|||||||
$mapping['cascade'] = $manyToOneElement['cascade'];
|
$mapping['cascade'] = $manyToOneElement['cascade'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($manyToOneElement['orphanRemoval'])) {
|
||||||
|
$mapping['orphanRemoval'] = (bool)$manyToOneElement['orphanRemoval'];
|
||||||
|
}
|
||||||
|
|
||||||
$metadata->mapManyToOne($mapping);
|
$metadata->mapManyToOne($mapping);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -404,6 +416,10 @@ class YamlDriver extends AbstractFileDriver
|
|||||||
$mapping['cascade'] = $manyToManyElement['cascade'];
|
$mapping['cascade'] = $manyToManyElement['cascade'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($manyToManyElement['orphanRemoval'])) {
|
||||||
|
$mapping['orphanRemoval'] = (bool)$manyToManyElement['orphan-removal'];
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($manyToManyElement['orderBy'])) {
|
if (isset($manyToManyElement['orderBy'])) {
|
||||||
$mapping['orderBy'] = $manyToManyElement['orderBy'];
|
$mapping['orderBy'] = $manyToManyElement['orderBy'];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user