1
0
mirror of synced 2024-12-13 14:56:01 +03:00

strtolower() on cascade information avoids problem with case-sensitivity in YAML and annotations mapping driver.

This commit is contained in:
Benjamin Eberlei 2011-06-20 21:26:12 +02:00
parent fff0204e6d
commit 3717ae3c53

View File

@ -832,7 +832,7 @@ class ClassMetadataInfo implements ClassMetadata
}
// Cascades
$cascades = isset($mapping['cascade']) ? $mapping['cascade'] : array();
$cascades = isset($mapping['cascade']) ? array_map('strtolower', $mapping['cascade']) : array();
if (in_array('all', $cascades)) {
$cascades = array(
'remove',