strtolower() on cascade information avoids problem with case-sensitivity in YAML and annotations mapping driver.
This commit is contained in:
parent
fff0204e6d
commit
3717ae3c53
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user