1
0
mirror of synced 2025-01-19 06:51:40 +03:00

Merge branch 'DDC-1035'

This commit is contained in:
Guilherme Blanco 2011-02-21 00:38:03 -03:00
commit b13c29944b

View File

@ -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'];
} }