1
0
mirror of synced 2025-01-06 00:57:10 +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
$cascades = isset($mapping['cascade']) ? $mapping['cascade'] : array(); $cascades = isset($mapping['cascade']) ? array_map('strtolower', $mapping['cascade']) : array();
if (in_array('all', $cascades)) { if (in_array('all', $cascades)) {
$cascades = array( $cascades = array(
'remove', 'remove',