DDC-3065 - applying hotfix that allows NULL
in IN()
criteria
This commit is contained in:
parent
a8b96803a4
commit
733102b4a1
@ -1534,7 +1534,13 @@ class BasicEntityPersister implements EntityPersister
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (is_array($value)) {
|
if (is_array($value)) {
|
||||||
return sprintf('%s IN (%s)' , $condition, $placeholder);
|
$in = sprintf('%s IN (%s)' , $condition, $placeholder);
|
||||||
|
|
||||||
|
if (false !== array_search(null, $value, true)) {
|
||||||
|
return sprintf('(%s OR %s IS NULL)' , $in, $condition);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $in;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($value === null) {
|
if ($value === null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user